Copy input fields based on condition yes/no

More
1 month 1 week ago #186563 by theendeavorist
Hi Peeps, I tried looking through the forum but couldn't the answer directly.

I want to setup a few questions but I would like the user to be able to duplicate these questions when needed.

Example: Input your address
Field [Street]
Field [Number]
Field [Town]

Do you want to add another address? yes/no

If yes, the same group(?) of questions are then presented again. This must then go on as much as the user needs. So I guess the yes/no drop down must also be in a group so it can continue to duplicate itself without limit and to the user's needs.

Thanks for your help!

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
1 month 1 week ago #186567 by tpartner
You cannot "duplicate" groups. You will need to create the maximum allowed groups in advance and hide/show them via conditions or relevance.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago - 1 month 1 week ago #186572 by Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
Last edit: 1 month 1 week ago by Joffm.

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #186584 by Joffm


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

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #186596 by theendeavorist
Thanks for these solution. I will definitly have a look at them and try them out. Last night I was thinking of another solution. Instead of showing the multiple input fields (copies) when needed, perhaps I can solve it by the following:

After having filled in the field and answering yes to: Do you want to add another address? yes/no
You redirect to another survey for example 1a (copy of Survey 1) and after 1a the same question is there: Do you want to add another address? yes/no, if yes it goes to Survey 1b).

Only after answering No it will go to the next stage of the survey. Is this possible?

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #186600 by DenisChenu
If you need «infinite» adress, i know only this plugin : questionExtraSurvey

Sample with token enabled surveys

You can hire me for setup

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand .
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: theendeavorist

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #186606 by theendeavorist
I really like this solution. I will have a look at it for sure :)

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #186612 by tpartner
Regarding multiple surveys, yes it's possible. Put a quota of 0 on the "Yes" answer with a redirect to the survey.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!