Is there a way to set up a Word Count for an open text question? | XM Community
Skip to main content
Solved

Is there a way to set up a Word Count for an open text question?


Hi, I can find lots of comments on character counts in open text responses, but nothing on word counts. I'd like to set up a question which restricts people to answer no more than 3 words. Is this possible?

Best answer by Mishraji

TimBurrell - You can use custom validation to match the following regex:
^(?:\\b\\w+\\b[\\s\\r\\n]*){1,3}$

View original

2 replies

Mishraji
Level 4 ●●●●
Forum|alt.badge.img+18
  • Level 4 ●●●●
  • 236 replies
  • Answer
  • May 25, 2021

TimBurrell - You can use custom validation to match the following regex:
^(?:\\b\\w+\\b[\\s\\r\\n]*){1,3}$


Thank you so much!


Leave a Reply