Mandatory Fields


Posted by TWendt - Mar 3 ’17 at 06:18


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.

Here is the script, but it does not work:

fd.onsubmit(function() {

if (fd.field('Freigabe').value()=="" && !fd.field('Datum').value())|| !fd.field('Name').value()) {

alert('Please, fill in Date and Name field.');

return false;


return true;




Best wishes


  • Dmitry Kozlov
    Dmitry Kozlov
    Member for: 5 years 9 months 26 days
    #1 by Dmitry Kozlov Mar 7 ’17 at 04:04

    Hi Tom,

    Here is a sample:

    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;
Displaying 1 to 1 of 1 messages