maxlength attribute for text field

Set a maxlength attribute for a text field in ChronoForms.

Overview

The maxlength attribute is not set in the standard field properties but requires a specific syntax in the advanced settings.
Navigate to the Advanced tab of the Text Field element and enter the attribute using the format 'maxlength:5' in the Extra attributes box.

Answered
ChronoForms v6
he hekla 29 Jan, 2018
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
Gr GreyHead 29 Jan, 2018
Answer
1 Likes
Hi Hekla,

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

Bob
he hekla 13 Feb, 2018
An useful additional information for all those to come:
the syntax is not like in HTML maxlength="5"
but slightly different: maxlength:5
This topic is locked and no more replies can be posted.