Registration/Profile Fields maxlength

Is it possible to limit Single line text to 3 any combination of characters? I tried maxlength in the other attributes field but it didn’t change anything.
There is not an option for maximum in the dropdown for Expected Format.
Any advice appreciated.

Hi Sherry,

True, there isn’t a max length in that setting.

I guess you could limit it with some javascript in the field…

In the custom profile field editor, under “Other Attributes”, add:

oninput="this.value = this.value.slice(0, 3);"



That worked perfectly!
Thanks so much. Was thinking I was going to get all kinds of odd entries if I couldn’t limit that. Whew!

1 Like

Great! :grinning: