Thank you for your reply. The masking that i intend to do is mask formatting for say phone number and date like on this link:
Any idea is appreciated. Thank you.
that is not available OOTB, you will have to script it on your own.
OOTB is just available regular expression validation. ie. control/form will not validate until input text does meet given regex pattern, but it will not provide visual hint what is expected pattern. you would need to define control's hint with expected format or place an another label/text control in the form which would explain what is expected format.
similar topic has been started here using jQuery mask plugin for input field , working in design but not working in the display mode. , however, author haven't posted whether he managed to get it working or not.
In general, the function NWF$("#myID").mask exists in the Preview mode, but not in the published form. Please look into the difference between what core script modules are being loaded. the mask function, or whatever plug-in supports it, is not in the live form