Initialize Toggle Switch in Data Design
Last updated
Last updated
Initialize Toggle Switch in Data Design
is a that is used to initialize and elements that were generated using the 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.
Data Design: to choose the element whose element you want to target.
Element: to choose / elements, within the selected , you want to initialize.
ID: Optional that accepts a value representing the unique value that was provided to the block. See below for more details.
ID2: Optional that accepts a value representing the secondary identifier that can be used to identify the desired element. See below for more details.
The behavior of this block depends on the ID and ID2 and is detailed below:
ID and ID2 not provided: Operate on the selected element for all generated instances of the same element.
ID2 provided and ID not provided: Operate on the selected element for all generated instances of the same element with the same ID2 value.
ID provided and ID2 not provided: Operate on the selected element for all generated instances of the same 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 element.
ID and ID2 provided: Operate on the selected element for all generated instances of the same element with the same ID and ID2 value.
NOTE: The same example also applies for a element.