Copy link to clipboard
Copied
Hello I'm building a fillable form where if the field "Family Member Member1" is filled than the field "age1" becomes required.
What I'm having trouble with is once "age1" is required id like to make an if-then statement where it looks to see if "age1" is required than on blur if left blank to prompt message "cannot be left blank".
please help
You can use this code:
if (event.target.required && event.target.valueAsString=="") app.alert("You can't leave this field empty!");
Copy link to clipboard
Copied
You can use this code:
if (event.target.required && event.target.valueAsString=="") app.alert("You can't leave this field empty!");
Copy link to clipboard
Copied
Thank you, this is great!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now