JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Text Boxes & Inputs › How to set mask on smart-form-control in HTML › Reply To: How to set mask on smart-form-control in HTML
April 27, 2021 at 1:00 pm
#101750
admin
Keymaster
Hi klslead,
To initialize custom fields as in the example I pointed out, you should use Javascript, not HTML.
Example:
{ dataField: 'mask', label: 'Mask Input', controlType: 'mask', controlOptions: { placeholder: 'Phone number', mask: '+1 (###) ### - ####', }, required: true },
Best regards,
Peter Stoev
Smart UI Team
https://www.htmlelements.com/