MultiChoice

Discussions about Forms Designer for SharePoint 2010.
Locked
User avatar
schuess
Posts: 82
Joined: Wed Jan 22, 2014

23 Jan 2017

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;


}

User avatar
schuess
Posts: 82
Joined: Wed Jan 22, 2014

23 Jan 2017

This seems to work.


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

var strdivisionsIncluded = "Divisions Included\n";

missingFields = missingFields.concat(strdivisionsIncluded);

errorCount = errorCount + 1;

}

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests