HTML Elements Forums Text Boxes Custom mask Masked textbox

This topic contains 1 reply, has 2 voices, and was last updated by  ivailo 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #99456

    hansT
    Participant

    Hello !
    I have a question about Masked text box component. I’m creating an app where i need a text box that accepts custom input. I want the user to be able to insert input that is validated according to a specific mask. The mask as follows: “AA BBBB CC”, where AA are two letters(A-Z), BBBB are four digits ( 0-9) and CC (two letters A-Z). If possible please include a code snippet.

    Thank you !

    #99457

    ivailo
    Participant

    Hi hansT,

    To validate the user input this way, You have to use the following mask – “AA #### AA”(“A” matches A-Z letters, “#” matches digits).
    Here is a snippet:
    <smart-masked-text-box mask="AA #### AA"></smart-masked-text-box>

    Best Regards,
    Ivailo Ivanov

    Smart HTML Elements Team
    https://www.htmlelements.com

    • This reply was modified 6 months ago by  ivailo.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.