Text entry - does someone know how to change the characters limits in words limits? | XM Community
Skip to main content
Solved

Text entry - does someone know how to change the characters limits in words limits?

  • March 14, 2022
  • 11 replies
  • 1294 views

Forum|alt.badge.img+1

Hiya!
Thank you for adding me to the Qualtrics community!
In one question on my survey I need to set a word limits but I can only see the characters limits (left side - add validation ). Does someone know how can I set up a words limit instead of a character?

Best answer by TomG

It is also possible to use JS to prevent the respondent from typing more that the allotted number of words.

11 replies

Heith
Level 2 ●●
Forum|alt.badge.img+6
  • Level 2 ●●
  • March 14, 2022

See this thread and I think it will answer your question - it addresses how to add a word counter and one of the comments included how to add a limit.
https://community.qualtrics.com/XMcommunity/discussion/144/how-do-i-show-the-number-of-words-in-text-entry-boxes-i-have-several-on-the-page


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • March 15, 2022

It is also possible to use JS to prevent the respondent from typing more that the allotted number of words.


Forum|alt.badge.img+1
  • Author
  • March 15, 2022

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • March 15, 2022

Forum|alt.badge.img+1
  • Author
  • March 16, 2022

https://community.qualtrics.com/XMcommunity/discussion/comment/44592#Comment_44592I can't make it work, maybe is something that I am doing wrong, I did update the 0 with my words limit that is 300.


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • March 16, 2022

https://community.qualtrics.com/XMcommunity/discussion/comment/44604#Comment_44604It works for me. You'll have to provide more specifics if you want help.


Forum|alt.badge.img+1
  • Author
  • March 17, 2022

https://community.qualtrics.com/XMcommunity/discussion/comment/44617#Comment_44617Hi Tom,
Thank you for your help.
After I have selected the question, I go on JS, I have pasted the gist, and on var maxWords = I did write the words limit. I then save it and try with the preview mode but no luck
image.png


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • March 17, 2022

  1. https://community.qualtrics.com/XMcommunity/discussion/comment/44646#Comment_44646What type of question did you add it to? Text Entry or some other type?

  2. If Text Entry, is it set to essay box or something else?

  3. Does the word count display on the bottom right?

  4. If it does display, does it increment when you type words?

  5. Have you looked at the console (right click/Inspect/Console) to see if there are any errors?

Here is what it should look like (I added max words to the display):
wordCountLimit.gif


Forum|alt.badge.img+1
  • Author
  • March 17, 2022

  1. https://community.qualtrics.com/XMcommunity/discussion/comment/44653#Comment_44653It is a text entry question

  2. and it is set as Essay text box

  3. The word count is displayed on the bottom right

  4. and it does increment when I do write words - it does not appear like your visual example 1/5

  5. NO I have not :D I just done it and it says failed to load resource...


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • March 17, 2022

https://community.qualtrics.com/XMcommunity/discussion/comment/44662#Comment_44662The extra info helped. For some reason, it didn't like the && condition once the number of words increased into the hundreds (somewhere between 200 and 300). I imagine it is a timing issue. Splitting it into two conditions fixed it. Copy the updated gist and try it.


Forum|alt.badge.img+1
  • Author
  • April 5, 2022