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?

  • May 25, 2021
  • 2 replies
  • 143 views

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}$

2 replies

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

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


  • Author
  • May 26, 2021

Thank you so much!