Quantcast
Channel: Adobe Community : Unanswered Discussions - Acrobat
Viewing all articles
Browse latest Browse all 73766

Need to detect length of text and fire script if it's 16, 20, or 36 chars long

$
0
0

Hi,

I'm a Javascript newbie and am scanning in two barcodes at a time into a PDF form. I need to check that the scanned code is either 16 chars (product code), 20 chars (batch Code), or 36 chars (valid combination - process it).

 

I'm trying to do this through the Format keystroke action, but an having trouble because the text field isn't updating when I thought it would. I'm open to any other method do do this.

 

Any ideas?

Thanks

James


Viewing all articles
Browse latest Browse all 73766

Trending Articles



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