Limit number of character

#1

Is there a way to limit a number of character for user input

#2

Hi @Yonatan

Follow this link :
http://support.kobotoolbox.org/creating-forms/formbuilder/restricting-text-responses-with-regular-expressions

Regards
Tulus

1 Like
#3

Thanks you help me a lot

#4

Although, as @tulus45 indicated, you can use a regex to limit the number of characters in a string, for your purpose it’s probably a lot simpler to just use the string-length() XPath function; eg

Constraint = string-length(.) <= 10

2 Likes