Check out the LimeSurvey source code on GitHub!

fill ranking array with answers from previous question

More
5 years 10 months ago #59648 by tpartner
I'm afraid I don't understand the question. This link describes how to insert the script and then you change the values in the script for your IDs.

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
5 years 10 months ago #59654 by janwillem64
Tony,

I see it now.
Many thanks for the support.

Jan Willem

Please Log in to join the conversation.

More
5 years 10 months ago #59689 by janwillem64
Hello Tony,

I'm using LS 1.90.
I've enabled JS and successfully ran the test script (custom template).
I've cut and paste the workaround JS script in the custom template (at the beginning). Didn't modify anything.
I've followed the instructions an ran the survey for testing but:
- the multiple choice questions are not hidden
- the ranking filter doesn't work
I'm tried question by question and group by group.
If you like I can supply you a login.

Jan Willem

Please Log in to join the conversation.

More
5 years 10 months ago #59738 by tpartner
Jan, can you give a link to a sample survey?

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
5 years 10 months ago #59748 by janwillem64
Hope this link willl work.I made the survey active.

survey.wwavdata.nl/limesurvey/index.php?sid=68179&lang=en

Problem quesion is:
groep2
v2a: 2.1 hidden multiple option question -> and the next.

Jan Willem

Please Log in to join the conversation.

More
5 years 10 months ago #59771 by tpartner
Jan, that survey requires registration and I'm afraid I don't wish to leave an email address. Can you make it public?

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
5 years 10 months ago #59775 by janwillem64

Please Log in to join the conversation.

More
5 years 10 months ago #59777 by tpartner
You need to use the question IDs, not the question codes:


So, in group 2, this line:
triggerCells(v2b, v2a, [1,2]);
Should be:
triggerCells(8, 182, [1,2]);

And, in group 3, this line:
rankFilter(v3a, v3b, 1);
Should be:
rankFilter(236, 264, 1);

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:

Please Log in to join the conversation.

More
5 years 10 months ago #59782 by janwillem64
Thanks again! Will give it try.

Please Log in to join the conversation.

More
5 years 10 months ago #59798 by janwillem64
Perfect!!!! It works. Even when creating more groups and referring to the first. Hopefully last question:) The last group I've created is a multiple numeric (sum to 100). Used same method. The hidden question is hidden but the list is the complete list again. Can that to?
survey.wwavdata.nl/limesurvey/index.php?sid=68179&lang=nl
question 5.
If you have enough of my questions I understand:)

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form