This is just a text input field. I’m hoping to limit the allowed quantity of characters.
How do I go about setting such a limitation? I’ve searched the community and docs, coming up empty for the most part.
This is just a text input field. I’m hoping to limit the allowed quantity of characters.
How do I go about setting such a limitation? I’ve searched the community and docs, coming up empty for the most part.
Hey @matt-thrive
On your input, you can limit the number of characters with the HTML attribute maxlength
with the value you want.
Thank you. Totally forgot about attributes! Is there a reference for supported attributes?
MDN docs are pretty good
Input for reference - <input>: The Input (Form Input) element - HTML: HyperText Markup Language | MDN
You can scroll to attributes