Collapsible Area Action in Data Design

Block Information

Available in: Page Flow

Toolbox Category: Dynamic Action

Block Type: Regular

Collapsible Area Action in Data Design is a regular block that allows you trigger the expansion or collapse of a Collapsible Area elements that were generated using the Content from Data Design block and dynamically added to the page or form.

The behavior of the block is similar to the Collapsible Area Action block, with some important differences:

  • Works only with elements generated using Content from Data Design block that are dynamically added.

  • Element Selection: You can only choose an element placed inside the selected Data Design element.

The block consists of the following (from top to bottom):


ID and ID2 usage

The behavior of this block depends on the ID and ID2 value parameters and is detailed below:

  • ID and ID2 not provided: Operate on the selected element for all generated instances of the same Data Design element.

  • ID2 provided and ID not provided: Operate on the selected element for all generated instances of the same Data Design element with the same ID2 value.

  • ID provided and ID2 not provided: Operate on the selected element for all generated instances of the same Data Design element with the same ID value. Since we recommend the ID value to be unique, this would choose one from all the generated instances of the associated Data Design element.

  • ID and ID2 provided: Operate on the selected element for all generated instances of the same Data Design element with the same ID and ID2 value.


Usage Examples

The image below shows an example where the Event Action in Data Design block is used to handle the click event for the Button element (Button79, labelled with a Down Arrow icon).

The Collapsible Area Action in Data Design block is then used to toggle the Collapsible Area element (CollapsibleArea6) of the associated generated instance of the Data Design (DataDesign8).

The id and id2 properties of the Action/Event Info block are used to determine the associated instance and are passed as the ID and ID2 value parameters for the Collapsible Area Action in Data Design block.

Clicking on the Button element (Button79, labelled with a Down Arrow icon) of a specific company, results in the associated Collapsible Area element (CollapsibleArea6) to expand or close (based on it's current expanded state).

In the second example, we will illustrate the scenario where neither ID nor ID2 are provided. Additionally in this example we are setting the Action Dropdown configuration setting to Expand, which will expand the selected Collapsible Area element (CollapsibleArea6) for all generated instances.

Last updated