How to auto Mask a text box?

  • 4 April 2016
  • 3 replies
  • 15 views

Badge +2

is there a way to auto mask a text field as user types to insert "-" or "." into this format "###-####-###.##-##"?

 

Cheer,

 


3 replies

Badge +9

Are you referring to SmartForms?  If so, yes.  Please take a look at patterns: https://help.k2.com/onlinehelp/k2smartforms/userguide/current/default.htm#creating_a_custom_pattern.html

Badge +2

Thanks, Victoria. Yes, SmartForms. But not exactly validation. The value gets validated on lost focus. However, the intension is to insert the constant characters like "_", or "." on the fly as users types the #s.

 

 

Userlevel 1
Badge +8

Hi NaserSaghafi

 

At this stage password masks can only be accomplished using some javascript. Please see: 

 

http://community.k2.com/t5/K2-blackpearl/Textbox-control-with-a-password-mask/ta-p/76595

 

 

Reply