Welcome to the LimeSurvey Community Forum

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

Counting multiple texts in a real time

More
10 years 10 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.
More
10 years 10 months ago #113873 by DenisChenu
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 support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
10 years 10 months ago #113876 by srocky
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: www.limesurvey.org/manual/Workarounds:_M...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.
More
10 years 10 months ago - 10 years 10 months ago #113879 by tpartner
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: 10 years 10 months ago by tpartner.
The topic has been locked.
More
10 years 10 months ago #113883 by srocky
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.
More
10 years 10 months ago #113885 by tpartner
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.
More
10 years 10 months ago #113886 by srocky
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.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose