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
  • theendeavorist's Avatar Topic Author
  • Offline
  • New Member
  • New Member
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!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 9 months ago #186567 by tpartner
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
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 9 months ago - 4 years 9 months ago #186572 by Joffm
Hi,
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
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 9 months ago #186584 by Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • theendeavorist
  • theendeavorist's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
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?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 9 months ago #186600 by DenisChenu
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

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
  • theendeavorist's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 8 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
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 8 months ago #186612 by tpartner
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.

Lime-years ahead

Online-surveys for every purse and purpose