Versions Compared


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


This rule is not yet supported in the Visual Rules Builder and thus still requires some JavaScript. This rule will take values selected in one checkbox control and populates those as options in a second checkbox control. For example, a checkbox control (Services) displays all available services. The second checkbox (Selected Services) will display as options the values selected in Services. One scenario you might use this is to customize an employee scheduling form. First, select three services from a checkbox control that need to be scheduled for an employee. Next, you will pick one of the three services selected earlier from a second checkbox control, and list scheduling details for that service. A repeat can be used to provide scheduling details for each service picked in the first checkbox control. 

Code Block
var opts = [''];

for (var i = 0; i < ProgramService.value.length; i++ ){
  var v = ProgramService.value[i].replace(/_/g,"  ");
  opts[i] = ProgramService[i].value + "=" + v;
SelectedPS.options = opts;  
var event = form.load;