Page 1 of 1

MultiChoice

Posted: 23 Jan 2017
by schuess
How do i validate that at least one checkbox is checked in a MultiChoice field?

This does NOT seem to work.

if (!fd.field('divisionsIncluded').value()) { //type=MultiChoice

var strdivisionsIncluded = "Divisions Included\n";

missingFields = missingFields.concat(strdivisionsIncluded);

errorCount = errorCount + 1;


}

Re: MultiChoice

Posted: 23 Jan 2017
by schuess
This seems to work.


if (fd.field('divisionsIncluded').value() == "") { //type=MultiChoice

var strdivisionsIncluded = "Divisions Included\n";

missingFields = missingFields.concat(strdivisionsIncluded);

errorCount = errorCount + 1;

}