Quantcast
Channel: Adobe Community: Message List - PDF Forms
Viewing all articles
Browse latest Browse all 57214

Re: Make either one or the other checkbox field required

$
0
0

I like to use the following method:

Add a hidden and required text field with the following defaut value: "Off".

As its custom calculation script enter this code (adjust the name of the check-box field, of course):

event.value = this.getField("CheckBox1").value;

 

This will now cause the text box to always have the same value as the check-box, and if the latter is empty the former will not pass the validation... It's a bit of a hack, but it works.


Viewing all articles
Browse latest Browse all 57214

Trending Articles



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