MultiChoice

rss

Posted by schuess - Jan 23 ’17 at 12:06

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;

 

}

  • schuess
    schuess
    Member
    Member for: 5 years 4 months 1 day
    #1 by schuess Jan 23 ’17 at 12:23

    This seems to work.

     

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

    var strdivisionsIncluded = "Divisions Included\n";

    missingFields = missingFields.concat(strdivisionsIncluded);

    errorCount = errorCount + 1;

    }

Displaying 1 to 1 of 1 messages