Restrict number of characters in field

Hi all-

Is there a way to restrict the number of characters in a specific field. For example, only allow 4 digits for an input field that would be designed for a vehicle year?

Thanks,
~Adam

Ive just learned about HTML attributes for forms, and the attribute I believe you are looking for is Size=4

I’m just not sure how / where you can modify the HTML of the form.

https://www.w3schools.com/html/html_form_attributes.asp

If you cant modify the HTML, you would need to do it in JAVASCRIPT

https://www.w3schools.com/js/js_validation.asp

I’m still learning a little more each night, so if I solve it ill repost here.

Hey Adam - the easiest solution is to use a VALIDATION RULE on the form

3 Likes