PDA

View Full Version : set textfield inputMask at runtime



shahab_et
23 Feb 2011, 9:48 PM
Hi,

I have a form which is used for data entry and there is a "textfield" on the form that needs to have a different "inputMask" every time depending on a particular condition,
so what I need is to set the "inputMask" for the "textfield" at runtime.
and my question is, how can I do that?!

a sample code would help me a lot !

I was thinking to use :
minLenght
minLenghtText

maxLenght
maxLenghtText

but still don't know how to do it using a function



Thank you

Condor
24 Feb 2011, 2:22 AM
You can change minLength, minLengthText, maxLength, maxLengthText, regex, regexText etc., but you have to call validate() afterwards to force revalidation.