Page 1 of 1

Mandatory Fields

Posted: 03 Mar 2017
by TWendt
Hi,

i have a choice field Yes / NO (Radio buttons). If one of both (Yes or No) of the choice field is marked, the field Name and Status should be mandatory. Thanks for your assistance.

Best wishes

Tom

Re: Mandatory Fields

Posted: 07 Mar 2017
by Dmitry Kozlov
Hi Tom,

Here is a sample:

Code: Select all

if (fd.field('YesNo1').value() && fd.field('YesNo2').value()) {
    if (!fd.field('Name').value() || fd.field('Status').value()) {
        alert('Fill-in both Name and Status!');
        return false;
    }
}

return true;