Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: A little help please

  1. #1
    Junior Member
    Join Date
    Aug 2011
    Location
    Georgia, USA
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default A little help please

    I'm very new to Java Scripting. I have to hand it to those of you who do this all the time. I'm going crazy just trying to do some simple things.

    I have two check boxes on a PDF document that are functioning as a radio group. This part is working correctly.

    Now I need to make it so that at least one of the boxes must be checked in order for the user to be able to submit the form.

    Here is the code I have so far:
    function IMMValidateForm()
    {
     var sTemp1;
     var sTemp2;
     var fieldRequired = Array("IGA302_1");
     var fieldRequired = Array("IGA302_3");
     var fieldDescription  = Array("Check Work Status");
     sTemp1= IMMSetAllMandatoryFields(fieldRequired, fieldDescription);
     if (sTemp1== true){
        return true;
     }
     else
     if (sTemp2== true){
        return true;
     }
     
    else
    {
        return false;
     }
    }

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: A little help please

    new to Java Scripting
    Try a javascript forum for your question.
    java is not javascript