Set form input field maxlength property

I want to set the maxlength of a textbox field. i.e <input type="text" id="username" name="username" maxlength="10">

I cannot see where I can set the property. Please advise?

Last I checked, Anvil’s components don’t have such a property. If you’re using them, you could enforce it via a function triggered by the component’s Events. See

Here is GREAT library for input validation:

1 Like