Hi everyone,
I'm working with a form in Survey123 Connect and I would like to count the number of words entered in a text question.
My goal is to either:
I know Survey123 supports XLSForm functions like string-length () for character counts, but I’m not sure how to calculate the number of words (for example by counting spaces or using another expression).
Example:
If a user enters:
“Community mapping improves planning”
The calculated field should return 4 words.
Has anyone implemented a word count in Survey123 Connect using XLSForm functions or a calculation field? If so, could you share the expression or approach you used?