After you've created your demo experience and added a blank page, you can edit the page variant as needed. For the sake of this demo, you can create a button and a modal, and configure the button to open the modal.

Before you begin

Role required: ui_builder_admin

Procedure

  1. Open the UI Builder page for your demo experience.
    Figure 1. UI Builder visual editor
    UI Builder visual editor.
  2. Click the + icon in the stage to open the toolbox.
    Arrow pointing to the + icon that opens the toolbox.
  3. Select a Single column layout.
  4. Next, click the + icon in the column to open the toolbox.
  5. Select the Button component to add it to the stage.
    Figure 2. Add a button
    Components tab with arrow pointing to Button component.
    Note: When you have selected the component, the Page configuration pane includes some presets you can use to automatically configure components on compatible pages. For the sake of this exercise, however, you will be configuring the component manually. For more information on presets, see Customize UI Builder pages using components.
  6. In the Page configuration pane, select Configure the component manually.
  7. In the Page content pane, select Button 1 and, in the Configuration pane, change the button label to Open modal.
  8. Select Save.
  9. In the Page content pane, click the plus icon next to Modals and select an Alert modal.
    Figure 3. Add an Alert modal
    Modals panel with Alert modal selected.
  10. Select Save.
  11. In the Page contents pane, select Button 1 and, in the Configuration pane, select the Events tab.
  12. Select + Add event handler and, under Inherited event handlers, select Open or close modal dialog.
    Figure 4. Show/hide modal configuration
    Show/hide modal configuration.
  13. Activate the Open modal dialog and, select Alert 1 in the Modal field, and select Add.
  14. Select Save.
  15. Select Preview.
  16. When the preview opens, select Open modal.
    The modal you defined opens.
    Figure 5. Open modal with button
    Open modal with button.
  17. Select Got it in the modal, and then select the browser back button to return to the experience main screen.

What to do next

Select the Next topic link to learn how to create a page using a template.