- Posts: 18
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Copy input fields based on condition yes/no
- theendeavorist
- Topic Author
- Offline
- New Member
Less
More
4 years 9 months ago #186563
by theendeavorist
Copy input fields based on condition yes/no was created 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!
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!
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10103
- Thank you received: 3591
4 years 9 months ago #186567
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Copy input fields based on condition yes/no
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.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12906
- Thank you received: 3969
4 years 9 months ago - 4 years 9 months ago #186572
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Copy input fields based on condition yes/no
Hi,
you can try this.
www.limesurvey.org/forum/can-i-do-this-w...ngth-question#160556
and neglect the "autocomplete" part.
Joffm
you can try this.
www.limesurvey.org/forum/can-i-do-this-w...ngth-question#160556
and neglect the "autocomplete" part.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 4 years 9 months ago by Joffm.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12906
- Thank you received: 3969
4 years 9 months ago #186584
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Copy input fields based on condition yes/no
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- theendeavorist
- Topic Author
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 0
4 years 9 months ago #186596
by theendeavorist
Replied by theendeavorist on topic Copy input fields based on condition yes/no
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?
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?
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13624
- Thank you received: 2490
4 years 9 months ago #186600
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 Copy input fields based on condition yes/no
If you need «infinite» adress, i know only this plugin :
questionExtraSurvey
Sample with token enabled surveys
You can hire me for setup
Denis
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 , plugin development .
I don't answer to private message.
The following user(s) said Thank You: theendeavorist
The topic has been locked.
- theendeavorist
- Topic Author
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 0
4 years 9 months ago #186606
by theendeavorist
Replied by theendeavorist on topic Copy input fields based on condition yes/no
I really like this solution. I will have a look at it for sure
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10103
- Thank you received: 3591
4 years 9 months ago #186612
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Copy input fields based on condition yes/no
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.
The topic has been locked.