JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums Data Grid How to form input permit only a few char

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #103694
    Gilles
    Participant

    Hi all,

    Can I specify an input form control component to have only (0,1,..9,’ ‘) chars => something like this :

    12345 678 9855 4556 13215

     

    Thanks

    #103700

    Hi,

    You can use the built-in validation in the Form component.
    Each control can have an array of validation rules.
    You can have a validation rule with a regex pattern.
    Here is a link for a quick demo with your desired behaviour: https://codepen.io/svetoslavb04/pen/YzLVjbN?editors=0010

     

    If you have any further questions, do not hesitate to contact us!

     

    Best Regards,
    Svetoslav Borislavov

    Smart UI Team
    https://www.htmlelements.com/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.