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

Re: Limit Field input to "1", "2" or "3"

$
0
0

You can do it with a text field, but it's more cumbersome. You can use this as the custom validation script for the field:

 

event.rc = event.value=="" || event.value=="1" || event.value=="2" || event.value=="3";

if (!event.rc) app.alert("Invalid value!");


Viewing all articles
Browse latest Browse all 57214

Trending Articles



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