Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Required Fields

Avatar

Level 1

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

0 Replies

Avatar

Level 7

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.