Use Lifecycle Events to Start Action Chains in a Layout

Lifecycle events are pre-defined events that occur during a page's lifecycle. You can start action chains when these events occur by creating event listeners for them. The only lifecyle event that you can listen to in Layouts is the vbEnter lifecycle event, which is triggered after page-scoped variables have been initialized. For example, you can use an event listener for the vbEnter event to trigger an action chain that will assign values to some of your dynamic component's variables when the page opens.

To start an action from the vbEnter lifecycle event:

  1. Open the Layout's Event Listener tab, then click Add Event Listener.
  2. In the Create Event Listener wizard, expand the Lifecycle Events category and select the vbEnter event. Click Next.
  3. Select the action chain you want to trigger. Click Finish.

    If the action chain you want to trigger is not listed, you can click Add and type an ID for a new action chain, which will then be created for you.



The new listener is grouped by the type of lifecycle event in the Event Listeners editor. The editor also displays the action chains each event listener will trigger. When you select an event listener, you can use the link in the Properties pane to open the action chain in the editor.