- Posts: 15
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Skip to submit screen
- oguerrer
- Topic Author
- Offline
- New Member
Less
More
3 years 7 months ago #205226
by oguerrer
Skip to submit screen was created by oguerrer
Hi everyone,
I have an issue that I'm sure is trivial to many of you but that I cannot figure out. The setting is the following:
- I have N groups in my survey, each one with a number of questions (it has to be this way by design)
- I randomize the order of the groups
- I present the respondent with only n<N groups
- To make sure that only n groups are shown, I have a global counter
- The counter updates every time a new group is presented (the counter update is in the group's first question)
- Each group has the relevance condition "counter<=n" so once n has been passed, no more groups are shown
The problem that I have is that, instead of going directly to the submit screen after the nth group, the n+1 group updates the counter and remains hidden, showing the user an empty screen with the Next button. It is only after clicking Next that the survey goes to the submit screen. The reason, of course, has to do with the fact that the counter is being updated when each group is displayed. Hence, a solution to this problem would be to update the counter after leaving the group, for example, when clicking Next. I am not sure if this is doable without going into Javascript, or if there are other smart ways to getting around this. I would appreciate any ideas and suggestions.
Thanks,
Omar
I have an issue that I'm sure is trivial to many of you but that I cannot figure out. The setting is the following:
- I have N groups in my survey, each one with a number of questions (it has to be this way by design)
- I randomize the order of the groups
- I present the respondent with only n<N groups
- To make sure that only n groups are shown, I have a global counter
- The counter updates every time a new group is presented (the counter update is in the group's first question)
- Each group has the relevance condition "counter<=n" so once n has been passed, no more groups are shown
The problem that I have is that, instead of going directly to the submit screen after the nth group, the n+1 group updates the counter and remains hidden, showing the user an empty screen with the Next button. It is only after clicking Next that the survey goes to the submit screen. The reason, of course, has to do with the fact that the counter is being updated when each group is displayed. Hence, a solution to this problem would be to update the counter after leaving the group, for example, when clicking Next. I am not sure if this is doable without going into Javascript, or if there are other smart ways to getting around this. I would appreciate any ideas and suggestions.
Thanks,
Omar
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
3 years 7 months ago #205228
by jelo
forums.limesurvey.org/forum/can-i-do-thi...lect-question-groups
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Skip to submit screen
Take a look at this thread to learn about relevanceStatus and gsec.oguerrer wrote: - Each group has the relevance condition "counter<=n" so once n has been passed, no more groups are shown
forums.limesurvey.org/forum/can-i-do-thi...lect-question-groups
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12888
- Thank you received: 3965
3 years 7 months ago #205229
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Skip to submit screen
Your approach with the counter is not the best in my opinion..
Better to use the .gseq function.
manual.limesurvey.org/ExpressionScript_-...#Access_to_variables
Remember .gseq is the sequential group number starting with 0.
So if there are other groups before your selection you have to adapt.
Example with 3 groups out of 6.
Joffm
Better to use the .gseq function.
manual.limesurvey.org/ExpressionScript_-...#Access_to_variables
Remember .gseq is the sequential group number starting with 0.
So if there are other groups before your selection you have to adapt.
Example with 3 groups out of 6.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- oguerrer
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 1
3 years 7 months ago #205231
by oguerrer
Replied by oguerrer on topic Skip to submit screen
Yes! .gseq was exactly what I was looking for.
Thanks a lot!
Thanks a lot!
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
3 years 7 months ago #205291
by DenisChenu
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.
Replied by DenisChenu on topic Skip to submit screen
With you method : i use
1. A hidden equation in each group GXcount
2. The equation are "1"
3. Relavance set to sum(G1count.NAOK,G2count.NAOK …) < X or GXcount.NAOK for group X
1. A hidden equation in each group GXcount
2. The equation are "1"
3. Relavance set to sum(G1count.NAOK,G2count.NAOK …) < X or GXcount.NAOK for group X
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.