Define max lenght of an input box

It’s possible to define the max lenght in character of an input box in a form?

For example: max 13 char for an EAN 13 code.

It’s possible to set this lenght by XML?

What form version do you use? 3.0 provides maxLength attribute.

Thank you