Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Designer
Viewing all articles
Browse latest Browse all 16286

Setting a Minimum Amount of Characters in a Numeric Field

$
0
0

Hello,

 

I would like to set a minimum and maximum amount of digits to a numeric field. I have used the following code in the change event (see below) to set the maximum, which is working for me, however I cant seem to set a minimum.

Is it possible to set a minimum, and if so, can someone please help?

 

var

 

 

maxLength = 6;

 

if(xfa.event.newText.length >maxLength)xfa.event.change = "";

 

 

Thank you,


Nik


Viewing all articles
Browse latest Browse all 16286

Trending Articles



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