Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Counting multiple texts in a real time

  • srocky
  • srocky's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago #113869 by srocky
Hello,

I have a question about possibility of real-time counting of texts answers.

I would like to add to a screen something like this:
"You've already answered X of 50 subquestions". The problem is, that answers for those subquestions are texts. Is it possible to count those answers and show respondents their progress?

(sorry for my english)
Best regards.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 4 months ago #113873 by DenisChenu
Replied by DenisChenu on topic Counting multiple texts in a real time
HI,

Yes : count(Q1.NAOK,Q2.NAOK ....) count the not empty Question.

Then no problem here.

Try : count(self.NAOK) if you are inside the question with 50 sub questions.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • srocky
  • srocky's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago #113876 by srocky
Replied by srocky on topic Counting multiple texts in a real time
Thanks for your answer.
Unfortunetelly this solution doesn't work - probably because of the question type I've used. I've tried to make my survey more user-friendly, so instead of texts i a table I've used Implicit Association Test (it's described here: manual.limesurvey.org/Workarounds:_Manip...ime_using_Javascript ). I've changed some parts of the script. Now it displayed subquestions one by one.

Probably because of this your solution didn't work. Is there any other option?

Best regards
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 4 months ago - 9 years 4 months ago #113879 by tpartner
Replied by tpartner on topic Counting multiple texts in a real time
The IAT workaround uses an array-texts question type with two columns. The workaround automatically populates both inputs in each row as the test proceeds so you may need something like this to count the rows completed (assuming thr IAT question code is "qIAT"):

Code:
{(sum(that.qIAT.NAOK))/2}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 9 years 4 months ago by tpartner.
The topic has been locked.
  • srocky
  • srocky's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago #113883 by srocky
Replied by srocky on topic Counting multiple texts in a real time
Unfortunatelly this solution dosn't work too. Probaby because of my changes (I've add some buttons, I've delate one of those two columns)... There is high probability that I've messed up something.

Those expressions seems to work (there is no error messeges) but the number which is shown is equal 0 al the time :(
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 4 months ago #113885 by tpartner
Replied by tpartner on topic Counting multiple texts in a real time
I'm sorry, we can not support code customizations.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • srocky
  • srocky's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago #113886 by srocky
Replied by srocky on topic Counting multiple texts in a real time
No problem - I think that this progress text is not the most impotrant thing in my survey ;)

Thanks a lot for your help.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose