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
Yes, I was using those resources, including datetime, but the information is lacking. But, I did just figure out part of the reason why my code doesn’t work and the datetime example does – you’re pre-populating the datetime form with data at creation. When I commented out the form.value= {}; portion of the js file, no masks are present. I can’t enter a decimal value in the “Number Input” field from the keyboard, but I can cut and paste a decimal value. The phone mask doesn’t appear upon rendering and doesn’t appear to the user until the minimum 2digits have been entered and the field loses focus.
That said, I still don’t have an answer to my question of how to specify the mask inside the smart-form-control tag. If I can get this answered I should be able to work around the other issues.
Thank you!