Welcome to the LimeSurvey Community Forum

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

EM-link to question group

  • coeneisma
  • coeneisma's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 2 weeks ago #134497 by coeneisma
EM-link to question group was created by coeneisma
Hi all,

Does anyone knows if it is possible to make a (EM) link to a previous answered question group, a la the links in the question index?

The goal is to present given answers (and some EM magic) as text on the last question page, and give the user the possibility to go back when he/she wants to change some answers, without using the question index.

Coen
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 2 weeks ago #134506 by tpartner
Replied by tpartner on topic EM-link to question group
Hi Coen, I have struggled with this in the past and ended up using a hidden index and accessing it via JavaScript.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • coeneisma
  • coeneisma's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 2 weeks ago #134509 by coeneisma
Replied by coeneisma on topic EM-link to question group
Thanks tpartner. Are you referring to your workaround in this post?

www.limesurvey.org/forum/can-i-do-this-w...uestion-groups#54604
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 2 weeks ago - 8 years 2 weeks ago #134511 by tpartner
Replied by tpartner on topic EM-link to question group
No, I don't think I ever posted it in the forum - it was a solution for a customer.

Basically, I hid the index and presented the respondent with a series of buttons in the summary text. Clicking a button in the summary virtually clicked a button in the index. Of course, this would only work for "pure" navigation, not submitting a response and then navigating. (but it sounds like it might suit your needs)

Code something like this:
Code:
$('button[data-index="1"]').on('click', function(e) {
  $('#index button[value="1"]').trigger('click');
});

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 8 years 2 weeks ago by tpartner.
The following user(s) said Thank You: coeneisma
The topic has been locked.
  • coeneisma
  • coeneisma's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 2 weeks ago #134512 by coeneisma
Replied by coeneisma on topic EM-link to question group
Great! Thanks for the example, I'll play with it a little.

Also I made a feature request here: bugs.limesurvey.org/view.php?id=10926
Please support if you would like this feature as well.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 2 weeks ago #134514 by tpartner
Replied by tpartner on topic EM-link to question group
Supported :)

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 2 weeks ago #134552 by DenisChenu
Replied by DenisChenu on topic EM-link to question group
Maybe best is to allow adding {REPLACEMENT} by plugin.

no ?

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.

Lime-years ahead

Online-surveys for every purse and purpose