Welcome to the LimeSurvey Community Forum

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

Copy condition from one question to several others

  • igeusmb
  • igeusmb's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 months 2 weeks ago - 7 months 2 weeks ago #250097 by igeusmb
I uploaded the example here : &token=6865d95e-e26c-4ad4-9179-b4fbcfa8b886
There won't be any image displayed, you can just answer 0 repeatedly to trigger the issue.
Thanks for your help!

Edit: Well, it seems I am still not allowed to write
Last edit: 7 months 2 weeks ago by igeusmb.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 months 2 weeks ago #250098 by holch
if you go on "Reply", not "Quick reply", you should have the options to add attachements. This is how it should look like (works for me):
 

Not sure what the token link is about.

And with "upload it here" I meant to upload it here in the forum. No link posted.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

  • igeusmb
  • igeusmb's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 months 2 weeks ago #250101 by igeusmb
Thank you for your reply. Unfortunately I do not have an option for attachments as shown on your screenshot.
The token was included in an URL that won't display (due to the spam issues you were talking about yesterday I presume ?).

Please Log in to join the conversation.

  • igeusmb
  • igeusmb's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 months 2 weeks ago #250102 by igeusmb
Ok I tried it again and the attachments option popped. I am not sure why but here is the .lss file.
So as I mentioned, there won't be any image displayed, you can just answer 0 repeatedly to trigger the issue.

Please Log in to join the conversation.

  • igeusmb
  • igeusmb's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 months 2 weeks ago #250247 by igeusmb
I tried several expressions for group condition and the same phenomenon always occur...
When the condition is not met, the remaining questions in the group keep being displayed, but hidden.
The bug does not occur if there is only one remaining question when the condition changes from TRUE to FALSE.

Please Log in to join the conversation.

  • igeusmb
  • igeusmb's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 months 2 weeks ago - 7 months 2 weeks ago #250248 by igeusmb
I also tried to find a workaround using Javascript, following this post : forums.limesurvey.org/forum/can-i-do-thi...a-bunch-of-questions and the following code:
Code:
<script type="text/javascript" charset="utf-8">
 
  function jump(jumpStep) {
 
    $('#thisstep').val(jumpStep + 1);
    document.limesurvey.move.value = 'moveprev';
    $('#limesurvey').submit();
  }
 
  jump(125);
 
</script>
But I could not get it to work. The submit occurs, as well as the value change on "thisstep", but the survey does not jump forward to the desired question.
I tried to set on the jump settings in Presentation parameters, but this did not change anything.
Do you know if such a workaround in Javascript could in theory work?
Thanks for your help.
Jessica
Last edit: 7 months 2 weeks ago by igeusmb.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 months 2 weeks ago #250250 by Joffm
Hi,
you saw that this script is 11 years old?
In the meantime the LS base changed several times.

Joffm 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • igeusmb
  • igeusmb's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 months 2 weeks ago #250271 by igeusmb
Hi,
I did see that...
However there is an "Allow Jumping" functionality referenced in the current version of the wiki ( manual.limesurvey.org/Presentation#Show_...ex_.2F_allow_jumping ).
So I thought that there must be a way to jump to a forward question. And indeed there is:
If I enable Question index / Jumping in Presentation section, I can do the following in Javascript :
Code:
window.location.href = "<study_url>?move=10"
which in this example will jump to question 10.
So I will use this method for now, and will happily switch to group condition with expression as soon as it works.
Thanks for your help.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose