Counting multiple texts in a real time

More
2 years 11 months ago #113869 by srocky
srocky created the topic: Counting multiple texts in a real time
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.

Please Log in to join the conversation.

More
2 years 11 months ago #113873 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
2 years 11 months ago #113876 by srocky
srocky replied the 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

Please Log in to join the conversation.

More
2 years 11 months ago - 2 years 11 months ago #113879 by tpartner
tpartner replied the 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"):

{(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: 2 years 11 months ago by tpartner.

Please Log in to join the conversation.

More
2 years 11 months ago #113883 by srocky
srocky replied the 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 :(

Please Log in to join the conversation.

More
2 years 11 months ago #113885 by tpartner
tpartner replied the 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.

Please Log in to join the conversation.

More
2 years 11 months ago #113886 by srocky
srocky replied the 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.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now