Buy Now
Sign in

maxlength attribute for text field

hekla , January 29 at 09:52
Answered
H
hekla
Hi there

I could not find where to set the simple good old fashioned maxlength attribute for a text field (<input>).
I did find the "maximum length" in the validation though, but I do not want the user to run into the validation if not neccessary.

Greetings,
Hekla
GreyHead
Hi Hekla,

You can use the Extra attributes box on the Advanced tab of the Text Files element to add extra attributes.

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
H
hekla

Thank you, Bob.​

H
hekla
An useful additional information for all those to come:
the syntax is not like in HTML maxlength="5"
but slightly different: maxlength:5