Hello,
I started searching the web after Checkbox sets but still have not find the answer.
I realised when I need to modify the Checkbox that contains multiple element I need to use the "Replace Field Content " script step and use the calculation but no idea about the syntax how to make link to the list members;
Checkbox field contains four item;
Corporate
Personal
Leased
All
I need scripts that is able to set up variations for the selection of the different items.
Example;
Option 1
X Corporate
X Personal
Leased
All
Option 2
X Corporate
Personal
X Leased
All
Do you want to overwrite existing check box selections or add these selected values to those already selected?
to overwrite, you can use an expression such as:
list ( “corporate” ; “personal” )
in order to select multiple values in one replace.
To append these values to those already selected without appending duplicates is also possible, but more complex. You need to avoid appending a value already selected because a duplicate will prevent a user from being able to manually clear the checkbox for that value.
Option 1: add each value one at a time—slower but more flexible, easier to script if the values to append vary each time.
If ( IsEmpty ( filterValues ( “corporate” ; checkboxField )) ; List ( checkboxField ; “corporate” ) ; checkbox )
Option 2: use Case function and test for all possible combinations so that list function can be used to append both values if neither is selected or just the unselected values if some have already been selected. Resulting case function can quickly become quite large as the number of values to select increases, but you only need one replace field contents action.