Welcome, Guest
Username: Password: Remember me

TOPIC: fill ranking array with answers from previous question

Re: fill ranking array with answers from previous question 3 years 5 months ago #59648

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4191
  • Thank you received: 787
  • Karma: 359
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: fill ranking array with answers from previous question 3 years 5 months ago #59654

Tony,

I see it now.
Many thanks for the support.

Jan Willem
The administrator has disabled public write access.

Re: fill ranking array with answers from previous question 3 years 5 months ago #59689

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
The administrator has disabled public write access.

Re: fill ranking array with answers from previous question 3 years 5 months ago #59738

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4191
  • Thank you received: 787
  • Karma: 359
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: fill ranking array with answers from previous question 3 years 5 months ago #59748

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
The administrator has disabled public write access.

Re: fill ranking array with answers from previous question 3 years 5 months ago #59771

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4191
  • Thank you received: 787
  • Karma: 359
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: fill ranking array with answers from previous question 3 years 5 months ago #59775

The administrator has disabled public write access.

Re: fill ranking array with answers from previous question 3 years 5 months ago #59777

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4191
  • Thank you received: 787
  • Karma: 359
You need to use the question IDs, not the question codes:
capture_1.gif


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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: fill ranking array with answers from previous question 3 years 5 months ago #59782

Thanks again! Will give it try.
The administrator has disabled public write access.

Re: fill ranking array with answers from previous question 3 years 5 months ago #59798

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:)
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.127 seconds
Donation Image