Welcome to the LimeSurvey Community Forum

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

User prompted repeating question groups for different entity

  • trigauts
  • trigauts's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 4 months ago - 3 years 4 months ago #224990 by trigauts
Please help us help you and fill where relevant:
Your LimeSurvey version: Version 3.25.4+201215
Own server or LimeSurvey hosting:
Survey theme/template:
==================
I am collecting information and files for an unknown number of cultural heritage sites. For each heritage site a limited number of the same questions will have to be answered, as well as one file upload. Please see the image attached for an example.

I have created a question group where the user can select the heritage site and then fill in information and upload a file. At the end of this question group I would like to add the following conditional question:

"Would you like to add data for another cultural heritage site?"
YES > this will load the same question group, but the user will select a different heritage site for which (s)he will add a different file
NO > this will close the survey

Is this at all possible with LimeSurvey? If so, how should I go about it?

Many thanks in advance!
Last edit: 3 years 4 months ago by trigauts. Reason: Edited title to hopefully make question more clear

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #224991 by Joffm
Please, attach your survey as lss Export.
And please attach images, too, instead  of using flickr or others. 

You may do what you want by the end-url to start a new survey, optionally with some parameters added.

Let's see.

Joffm

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

Please Log in to join the conversation.

  • trigauts
  • trigauts's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 4 months ago #224994 by trigauts
Thanks for replying, Joffm.

I'm attaching both the .lss export and the linked image for reference. Thank you for your help!

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago - 3 years 4 months ago #224997 by Joffm
So you want to avoid the double entries in "General information".

Will it be a closed survey or an open?

In a closed survey you can use the plugin "updateTokenByResponse".
Meaning:
For each question in "Gerneral information" you create an attribute.
In the participants table set "uses left" to a hgher vakue.
If these attributes are empty the first group is displayed.
After submitting the attributes are updated.
If the respondent answers "YES" the end-url will be something like "link_to_survey?lang=en&token={TOKEN:TOKEN}&newtest=Y"
If the answer is "NO" the end-url is empty.

In an open survey you could create a new Group at the beginning of the survey with a hidden question of type "short text" (RespID).
If the respondent answers "YES"  the end-url will be something like
link_to_survey?lang=en&{if(is_empty(RespID),"RespID="+SAVEDID,"RespID="+RespID)}
Now you can set the relevance equation of "General information" to "is_empty(RespID)"
If the answer is "NO" the end-url will be empty.
The best is to generate this end-url before in a question of type "equation".
Now you can merge the responses by "Id" - if RespID is empty and RespID.

Here an example.
 

File Attachment:

File Name: limesurvey... (1).lss
File Size:84 KB

adapt the path to the survey.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 4 months ago by Joffm.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 years 4 months ago #225004 by DenisChenu

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

  • trigauts
  • trigauts's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 4 months ago #225032 by trigauts
Thanks Joffm,

I just tried your solution for the Open Survey and it worked like a charm. Organising the responses by "Id" is very clever.

Is there a way starting the survey on the splash page (where the text element of the "Description" is shown) at 0%? Now the survey seems to start directly at the first question group, or 33% into the survey.

Thanks again, I would never have been able to figure this out on my own.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • trigauts
  • trigauts's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 2 months ago #226908 by trigauts
My apologies for reviving this topic, but is there a way to skip the welcome screen using the same condition that skips the first question group?

My scenario would be when someone opens the survey:

1. Welcome screen

2. Question group A (general questions that only need to be answered once)

3. Question group B (specific questions that will loop based on Joffm's solution above)
If respondent answers "Yes" to the last question if they want to fill in group B for a different site:

4. Question group B+1


Now when I use Joffm's solution and I add a welcome screen to the survey (Presentation: show welcome screen: ON), it first shows the welcome screen again before going to question group B. I only want to show the welcome screen the very first time the survey is opened.

Many thanks in advance for your advice.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 2 months ago #226909 by Joffm
Some ideas:
1.Don't show the welcome screen.
Any welcome message you may show in a question of type text display.
If the respondent has to agree to some private policy, do it in a mandatory "multiple" question with only one subquestion "Yes I agree"

2. Split the survey
Survey A with welcome screen and general questions links to Survey B by end-url
Survey B links to itself by end-url as long as the respondent wants to fill adifferent site
Always transfer the SAVEDID of Survey A

3. Depending on the questions of survey B you may use the plugin "questionSpreadsheetSurvey"
[url] gitlab.com/SondagesPro/QuestionSettingsT...ionSpreadsheetSurvey [/url]

Joffm
 

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

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose