Max number of words | XM Community
Skip to main content

Is there a way to set validation on a text question to a certain number of words? I want a max of 3 words for a question.

You can use matches regex ^(?:\b\w+\bb\s\r\n]*){1,3}$


Is that javascript? If so, I need some hand holding with how to implement that.


It is custom validation (Add Validation - Custom), which is what I interpreted your question to be asking for.

 


Ah, thank, you. That worked!


Leave a Reply