Skip to content

Modal: Confirm Destructive starter block

Reference · Intermediate · Bootstrap 5

Design a confirmation message with explicit cancel and confirm choices.

Design a confirmation message with explicit cancel and confirm choices.

  • A page with Bootstrap 5 included. Load its JavaScript for collapse, dropdown, tab or dismiss interactions.

Design a confirmation message with explicit cancel and confirm choices. This reference describes the inserted template. It contains static sample content and no App Connect data bindings or application event handlers.

Insert the block into a Bootstrap 5 page, then expand it in App Structure. Select the child whose content or styling you want to change; there is no separate block configuration form.

Part How to adapt it
HeadingsStart with the h5 reading “Delete this workspace?”. Replace sample headings with your own content and keep their levels consistent with the surrounding page.
Application buttonsThe sample includes 3 buttons without an application event binding. Native submit/reset behavior still applies when those types are used inside forms. Give icon-only buttons an accessible name and connect or remove actions users cannot yet complete.

This is a permanently visible design sample using d-block and position-static, not a wired modal. Close, Cancel and Delete have no handlers, and the text confirmation is not checked. Use a real modal component and an authorized server operation; compare the confirmation text and show success only after that operation succeeds.

Change the first heading from “Delete this workspace?” to a title appropriate to your page, for example “Delete this draft?”. Preview the page at narrow and wide widths and confirm the text remains readable without clipping. Then replace the remaining sample content and verify every route or control you kept.

Use the starter-block guide for insertion and adaptation. For live records or user actions, connect the matching App Connect workflow after the static layout is readable.

You can identify the inserted parts, replace sample content and distinguish supplied Bootstrap behavior from application work still to implement.