Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Since checkbox options are multi-select, in order to select multiple options via a rule you must use this syntax. The correct way to initialize the checkbox control value is to collect all required options in an array and then assign that array as the value of your checkbox control.  

In this example CB is the name of a checkbox controls with the following options: red, green, blue. This rule selects all of the options.

Code Block
CB.value = ['red', 'green', 'blue']; 

To clear all checked option options in the control named CB:

Code Block
CB.value = []; 

...