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

Re: How can a field be formatted to limit the specific characters it accepts.

$
0
0

This works but I had to remove the returns so the script was one continuous line. And I had to add an xtra } at the end

 

The simpleist:

 

event.rc = event.value == "" |event.value == "M" || event.value == "Q" || event.value == "X"; or a validation with a prompt: if (event.value !="") {if( event.value != "" && event.value != "M" && event.value != "Q" && event.value != "X" ) {app.alert("Input must be M, Q, or X", 2, 0);event.rc = false;}}

 

 

Thanks

Pandora273


Viewing all articles
Browse latest Browse all 57214

Trending Articles



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