Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3338
webtextedit question..
posted

Is is possible at runtime to add a mask to a webtextedit box?

If so, how?

 

 

  • 24497
    posted

    Hi,

    I guess you asked about WebMaskEdit, but not WebTextEdit.

    There is get/setInputMask(mask) member functions on client. The "set" is used internally while initialization of control. You may try to use it too, however, you should keep in mind that that value is not persistant to server. So, if you modify layout of entry-positions and literal static characters, then server will not be able to interpret value entered by user, and it will lead to wrong result. However, if your new mask will contain only different literal characters then all should work correctly.

    You may look at implementation of igedit_mask function in ig_edit.js file.