Get Toggle Switch State in Data Design
Last updated
Last updated
Get Toggle Switch State in Data Design
is an that allows you to retrieve the state of and elements that were generated using the block and dynamically added to the page or form.
The output is of type (true/false) and is compatible with of type (true/false) or of type .
The block consists of the following (from top to bottom):
and elements, used inside a Data Design element, need to be initialized using the , after they are added to the page or form.
The behavior of the block is similar to the block, with some important differences:
Element Selection: You can only choose an element placed inside the selected element.
Works only with elements generated using block that are dynamically added.
Data Design: to choose the element whose element you want to target.
Element: to choose the element, within the selected , you want to get the state of.
ID: Mandatory that accepts a value representing the unique value that was provided to the block.
ID2: Optional that accepts a value representing the secondary identifier that can be used to identify the desired element. See below for more details.
NOTE: Please refer to the prerequisite information shown before seeing the example.
The image below shows an example where the state of element (Input51) for Company 1, which as rendered with the ID ST100, is retrieved and set as the value of variable b .
NOTE: The same examples also apply for a element.