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

More
1 year 11 months 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.

More
1 year 11 months 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.

More
1 year 11 months ago - 1 year 11 months 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: 1 year 11 months ago by igeusmb.

Please Log in to join the conversation.

More
1 year 11 months 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.

More
1 year 11 months ago #250271 by igeusmb
Hi,
I did see that...
However there is an "Allow Jumping" functionality referenced in the current version of the wiki ( www.limesurvey.org/manual/Presentation#S...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.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose