Skip navigation
Heidi M. Lewis
Currently Being Moderated

Required Fields

Aug 15, 2012 7:35 AM

I am extremely new to LiveCycle Designer but have enjoyed the capabilities of this program.  Below is a form that I'm creating would like several areas to be required (if possible).  First, when the user chooses "Yes" under New Client, I want the Billing Address section to be a required field (with Street and the P.O Box fields to be either/or).  Second, when the user chooses #1 from the drop-down list under Technical Area then the Provisional and Non-Provisional section is required to be filled out.  Please let me know where I can upload or email the actual form to so the scripts can be seen as currently entered.

 

Client Matter Form in progress (instructions).jpg

 
Replies
  • Currently Being Moderated
    Aug 15, 2012 9:54 PM   in reply to Heidi M. Lewis

    To make fields mandatory you can use the validate.nullTest function. So in your case you could put in the click event of the Yes radio button:

     

    (in formcalc)

     

    TextField1.validate.nullTest = "error" (replacing TextField1 with whatever you have called your field).

     

    To turn satisfy the nullTest you put in the exit event of TextField1:

     

    if ($.isNull == 0) then

    $.validate.nullTest = "disabled"

    endif

     

    The same principle applies for both your situations.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points