Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 97529

Re: Is there a way to make a checkbox cause specific text fields to be required?

$
0
0

Make this the script for your checkbox:

 

     getField("myTextField").required = event.target.value === "Yes" ? true : false;

 

 

Change "myTextField" to the name of the text field in your form.

 

 

 

 

 


Viewing all articles
Browse latest Browse all 97529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>