Overall Word/Character Count from multiple questions | XM Community
Solved

Overall Word/Character Count from multiple questions

  • 15 January 2019
  • 2 replies
  • 30 views

Hello,

I have a survey with 8 questions on the same page and I am asking the participant to write an overall minimum of 300 words.

I have learned how to put a word count for one question, but I would actually like an overall word count that counts all the words in all 8 questions. This way a participant will know if they have reached 300 words for the 8 questions. Is that possible?
icon

Best answer by JenCX 15 January 2019, 16:31

View original

2 replies

Userlevel 7
Badge +11
You can store the result of the single word count as embedded data and then use math operations to calculate a total, then check that total to see if it's over 300 words.
Userlevel 7
Badge +27
@BrionyMorgan,

It would be helpful if you shared the code you are using to count the words for one question. The code to count and display the total across all text inputs should be similar. Find all the text inputs and loop through them.

Leave a Reply