Skip to submit screen

More
1 week 2 days ago #205226 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

Please Log in to join the conversation.

LimeSurvey Partners
More
1 week 2 days ago #205228 by jelo
Replied by jelo on topic Skip to submit screen

oguerrer wrote: - Each group has the relevance condition "counter<=n" so once n has been passed, no more groups are shown

Take a look at this thread to learn about relevanceStatus and gsec.

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

Please Log in to join the conversation.

More
1 week 2 days ago #205229 by Joffm
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.
https://manual.limesurvey.org/ExpressionScript_-_Presentation#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.

File Attachment:

File Name: limesurvey...6311.lss
File Size:19 KB


Joffm


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

Please Log in to join the conversation.

More
1 week 2 days 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!

Please Log in to join the conversation.

More
1 week 1 day ago #205291 by DenisChenu
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

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.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now