Use page event mappings to bind data elements within UI Builder so that you can add event actions to your page.

Before you begin

Role required: ui_builder_admin

About this task

You can bind an event to a page by using the following types of events:
  • Page event mappings. Add, remove, or clear alert notifications on your page.
  • Variant event mappings. Add, remove, or clear alert notifications on your page variant.
  • Dispatched events. Create dispatched events for your page to create relayed event mappings that model events after a parent event handler. Select a target parent event handler to model the payload fields after it.
  • Handled events. A handled event is an event that is exposed and available for use by other users. After you create a handled event, it is available under Page event mappings for other users to use. You can also set up payload fields that you create manually or choose a template for your handled event, such as an open or close a modal dialog.

Procedure

  1. Navigate to All > Now Experience Framework > UI Builder.
  2. Open an experience to work in or create an experience by selecting Create > Experience.
  3. Open or create a page.
    For more information about how to create a page in UI Builder, see Create a page in UI Builder.
  4. Highlight the page body in the content tree.

    The body is the top-level line of the content tree. When you highlight the whole page, you can add page-level events.

    Arrow pointing at the body option in the content tree.
  5. In the configuration panel, select the Events tab.
    Configuration panel with the Events tab.
  6. Add an event handler in one of the following ways.
  7. Select Save.
  8. To preview your page and test the data resource event that you set up, select Preview button..