Count the number of lines in a text input?

Hello @ks_1,
Maybe. with a trick, translate function can do the job (at least in Enketo).
CountSpecChar_01.xlsx (12.5 KB)

ReducedLength here is the number of newlines
Attention, also counts leading and trailing and multiple newlines.
Leading and trailing might be removed by adding normalize-space function: string-length( normalize-space(…) ).

Kind regards

2 Likes