Welcome to the LimeSurvey Community Forum

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

Include a question group that can only be accessed with a button

  • Luca_W
  • Luca_W's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 7 months ago - 2 years 7 months ago #234116 by Luca_W
Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey Cloud   Version 5.4.11

==================
Hi!

I want to include a page in my survey, that can only be accessed by clicking a button on another page in the survey, another button will direct participants back to where they came from. I don't want the participants to see that page again (or before) in the survey, only if they click the button. If I put a condition on the group or hide the questions the button also doesn't work anymore. Is there a way to do this?

I'm thankful for any suggestions!
Last edit: 2 years 7 months ago by Luca_W.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 7 months ago #234118 by Joffm
Hi,
please, do not double post.
tpartner answered your general question about this.

Now : What kind of page is this, that is only displayed once?
Isn't it possible to open a popup to display this content?
Or just a link to a HTML page?
While I'd prefer the popup.


But your information is a bit vague.
Best you create a small prototype of your idea and provide this as lss export.

Joffm

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

Please Log in to join the conversation.

  • Luca_W
  • Luca_W's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 7 months ago #234119 by Luca_W
Hey, thanks for the quick answer.

I didn't double post, my previous question was about creating the buttons, while this question is about the possibility of hiding question groups in the survey, while stil being able to access them directly with a button. I have created the buttons now that take me to the question group and back, so that is not my current problem.

Page was maybe the wrong word, I'm talking about a question group that's part of my survey and displays a text and also has a hidden question, that tracks, how many times the question group is visited (also already done). For reasons that are specific to the design of the experiment, a pop-up would not work. The prototype will take me a second, but maybe this explaines my problem a bit better already.

Please Log in to join the conversation.

  • Luca_W
  • Luca_W's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 7 months ago #234134 by Luca_W
Hi, 

I attached a prototype of my survey that shows what I'm trying to do. The question the button jumps to contains the same text shown earlier. I'm not linking to the original question where the text is first shown, because I want to track how many times the button is used in each of the 2 cases it can be used. I do that by tracking how many times the question group is visited, that's why there are 2 of those (also it makes linking back easier). If I linked to the previous text, I could only see how many times it was used overall. With this solution you see the text 3 times now, which of course is not what i want. I hope that clarifies my problem. 

Thanks a lot!

Please Log in to join the conversation.

  • Luca_W
  • Luca_W's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 7 months ago - 2 years 7 months ago #234166 by Luca_W
I've tried hiding the question group on the condition of a question later in the survey being answered. That works per se, but if I use the relevance equation the number of visits doesn't seem to be stored. When I hide every question via javascript, the page showing the question group still shows up, just without the questions as an empty frame. That also doesn't solve my problem, as I will have a number of these question groups and participants would have to klick through 10+ empty/irrelevant pages.

Please, does anyone have another idea how this could be done or what I'm doing wrong?

Edit: an alternative solution i guess would be to track the use of the buttons I made instead of the page visits, but I don't know if that's possible.
Last edit: 2 years 7 months ago by Luca_W.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 7 months ago #234174 by Joffm
Hi,
this seems to work:You have all these "special" questions at the end of the survey.
Now there is a last question before these "special" groups.
Best this is a simple question
After the question create a question of type equation that returns two values (1, if the question was answered, 0 else), like
{if(is_empty(Q1),0,1)}
Set a quota on this equation that all people are screened out if the value of the equation is "1".
As long as this question is not answered your text displays and counters are displayed.

Disadvantage: You don't get completes.
But this shouldn't matter. You see the value "lastpage" to decide whether people completed the survey or terminated somewhere else.


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: Luca_W

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 7 months ago - 2 years 7 months ago #234175 by Joffm
Other option without "screen out"
If you have some "last questions" like demography or something like that.

Put one question in each of your "Dummy groups"
This question gets the css class {if(is_empty(Q1,'hidden','')} - you remember Q1 the "last" question of the questionnaire before the "dummies".
The text display gets the opposite {if(!is_empty(Q1,'hidden','')} 

By the way, you can include the button in the text display.
and it looks better with some bootstrap classes like "btn btn-primary" or "btn btn-warning"
 

This is necessary because there will be displayed an empty group with buttons, if you hide all questions by css.
In your counter insert a variable that checks Q4 (answerede or not)
var answered={if(is_empty(Q4),1,0)};

Now you may write "visits" like this (you save a new IF cnstruct)
visits = Number($.trim($('input:text:eq(0)', thisQuestion).val())) + answered;

Joffm
So, genug auf Englisch parliert.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 years 7 months ago by Joffm.
The following user(s) said Thank You: Luca_W

Please Log in to join the conversation.

  • Luca_W
  • Luca_W's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 7 months ago #235527 by Luca_W
Thanks a ton, I used the first option you suggested and it works!

Grüße von einer fellow Hessin :D

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose