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

Script to change field to required?

Avatar

Level 2

Anyone know what the script is to make a text field required.

Making a form that when box is checked they have to fill in an identifying number. I was planning to do this through an on click script but cant seem to find the call out to change that formatting. Any help is apprecitated thanks

Shawn

0 Replies

Avatar

Level 2

Found it

TextField1.validate.nullTest = "error";

 

You can also use one of these two scripts:

    TextField1.mandatory = "error"  TextField1.mandatoryMessage = "this field is mandatory!"    

Now the question is how do you turn it off if they check the no box