Mandatory Fields

rss

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

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.

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

Tom

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 9 years 8 months 7 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;
    
  • retrogress
    Member
    Member for: 2 years 4 months
    #2 by retrogress Jan 28 ’21 at 03:10

    When I read this article, thanks to the author for the thorough explanation, I learned absolutely everything about my issue. On the https://essaysservicesreviews.com/essay-pro-review/, I wrote my review. You can go in and read it. Many thanks for your attention and for your time.

  • AndresFerry
    Member
    Member for: 2 years 3 months 26 days
    #3 by AndresFerry Feb 4 ’21 at 06:40

    These online forums have made our life very easy. With the help of these master papers online forums, we can share our content and get an idea about other forums from there. There is not only one single person sitting there to help you, there are thousands of people to help you.

  • MindyHenry
    Member
    Member for: 2 years 2 months 2 days
    #4 by MindyHenry Apr 22 ’21 at 01:59

    Exercises gained from the individuals who have occupied with betrayal and gotten captured. As youngsters, we got our hands trapped in the treat container. Also, as grown-ups we endeavor the same kinds of things. chinese buffet near me is consistently the same. We need what we shouldn't have; and we need to have it regardless of the guidelines.

Displaying 1 to 4 of 4 messages