Maximum number of characters in text questions

Hi @analucia_espinoza,

Adding up to what @wroos has outlined above, would like to document more information on the character limit with Enketo,

Enketo at the moment supports only 2000 characters of text input (which includes space). If you try typing in Enketo, you will notice that you won’t be able to type any characters when it reaches the threshold limit (2000 characters). If you try pasting a text (which is more than 2000 characters) in Enketo, you will be able to paste only 2000 characters while the exceeding characters gets truncated automatically (which the user won’t notice and assumes that s/he was able to paste beyond the threshold level).

Discussions are ongoing on what can be done to best resolve the issue (like the one you have raised here). Till then would you mind trying out the following workaround (regex example as shown below) as advised by @stephanealoo so that the enumerators during data collection would know exactly when to stop, as they are not able to exceed certain number of characters during a text input.

Using regex to control the character input:

Use regex(., '^[\d\D\s]{1,1999}$') to control the input to 1999 characters (as 2000 is a default threshold where regex fails).

Have a great day!

1 Like