Initialize Toggle Switch in Data Design

Block Information

Available in: Page Flow

Toolbox Category: Dynamic Input

Block Type: Regular

Initialize Toggle Switch in Data Design is a regular block that is used to initialize Checkbox and Toggle Switch elements that were generated using the Content from Data Design block and dynamically added to the page or form.

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

NOTE: For the most common use cases, the ID and ID2 values need to be blank when using the Initialize Toggle Switch in Data Design block.


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 Example

NOTE: The same example also applies for a Checkbox element.

Last updated