pui.setMLTCHCFLD( field id, checkboxes )



This function emulates the green-screen keyword MLTCHCFLD by returning a count of selected checkboxes.

Parameters:

  • field id - id of a hidden element bound to the MLTCHCFLD response field

  • checkboxes - array of checkbox element id's

Example:

The following snippet of code would typically be assigned to the onsubmit event:

pui.setMLTCHCFLD("CHKBOXES", ["CHKBOXES_choice1", "CHKBOXES_choice2", "CHKBOXES_choice3"]);