How to create a question with the option to add another line?

Plus d'informations
il y a 3 ans 2 mois #123851 par DOwen
DOwen a créé le sujet : How to create a question with the option to add another line?
We are building a survey which asks for a list of products required. The products are chosen from a set list of 50 inside a dropdown. They can choose as many products as they want. However I cannot find a way of creating a question that allows the user to add another line containing the dropdown, as well as a small text box, and continue to keep adding more. The only thing I can think of is to create a very large amount of questions and hide them all. Is there a solution?

We also need similar questions where we the user will describe an event with four questions together (eg Start Date, End Date, Title, Description). We would like the user to be able to keep adding as many events as they want here too.

Ideally a '+' button or similar would be great which creates another space to add an answer.

Can anyone help please?

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 2 mois #123863 par holch
holch a répondu au sujet : How to create a question with the option to add another line?
There is no "loop" function in Limesurvey. So the only way is as you imagined: create as many questions or answer options as you think makes sense (for the products a maximum of 50 I guess) and hide them.

There was a workaround of Tpartner somewhere that actually had the option of "adding" an additional answer option by clicking on a button, if I remember right. But this was quite a while ago. You would have to search the workaround section and the forum to see if you can find it.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 2 mois #123876 par DOwen
DOwen a répondu au sujet : How to create a question with the option to add another line?
That's a shame. I'm sure hiding the answers can be effective enough. I couldn't find anything from Tpartner on the forum though...

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 2 mois #123928 par tpartner
tpartner a répondu au sujet : How to create a question with the option to add another line?

There was a workaround of Tpartner somewhere that actually had the option of "adding" an additional answer option by clicking on a button

Variable Length Array - manual.limesurvey.org/Workarounds:_Manip...ble_Text.29_question

(it's quite old but should give the idea)

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 2 mois - il y a 3 ans 2 mois #123940 par DOwen
DOwen a répondu au sujet : How to create a question with the option to add another line?
Oh great thanks Tony!

Does this only work for array questions though?

I would like a group of questions (non-array questions) to appear when clicking on the 'add' button, rather than just create a new row inside an array question. Is this possible?
Dernière édition: il y a 3 ans 2 mois par DOwen.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 2 mois #123981 par tpartner
tpartner a répondu au sujet : How to create a question with the option to add another line?
I'm sure the workaround could be modified to handle questions instead of array rows but I don't have time for that today.

Having said that, from your original post, it seems to me that you want to be using an array-text type question for your text inputs. You would need to replace the text inputs in the first column with drop-downs - something like this - www.limesurvey.org/en/forum/can-i-do-thi...boxes?start=10#95370

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 1 mois #126028 par DOwen
DOwen a répondu au sujet : How to create a question with the option to add another line?
Hey, had to bring this back again. Unfortunately this went on the back burner, until now.

So I've had another look into this and I don't think tan array question would work in all cases, in particular questions where a large text box will be required. (eg a group of questions such as Name, date and description would be Item 1, then the user clicks on a button which displays another batch of the same group as Item 2).

Can anyone else agree that showing and hiding questions is the best way forward? However I'm still not sure how an Add Item or similar button would be added in this case?

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 1 mois - il y a 3 ans 1 mois #126231 par DOwen
DOwen a répondu au sujet : How to create a question with the option to add another line?
Would anyone please be able to offer any assistance?

Ideally need to achieve what I've tried to display in the attached wireframe.

So basically, a section in the survey where the user is asked to specify certain items labelled 1, 2, 3, etc. (sub headings 'Item 1', 'Item 2', etc may not be required) and a description of each item. There could be any number of items from 1 to 20 approx. So they need the ability to add another 'Item # Name' and 'Additional Information'.

We are then outputting the completed survey at the end to PDF (using TCPDF) which would have all the items and their descriptions listed.

I'd need to apply this same sort of question/answer format to other questions too where there would be more fields.

Pièces jointes :
Dernière édition: il y a 3 ans 1 mois par DOwen.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 1 mois #126262 par DOwen
DOwen a répondu au sujet : How to create a question with the option to add another line?
Tried to use Tpartner's workaround but would prefer not to use Array, although struggling to manipulate the script based on the Array question type for another question type.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 1 mois #126266 par DOwen
DOwen a répondu au sujet : How to create a question with the option to add another line?
just tried using the workaround with the array question type anyway and its not working. The plus button is there, and a minus button appears when the plus button is selected, but that's it, nothing else happens.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 1 mois #126303 par Mazi
Mazi a répondu au sujet : How to create a question with the option to add another line?

holch écrit: There was a workaround of Tpartner somewhere that actually had the option of "adding" an additional answer option by clicking on a button, if I remember right. But this was quite a while ago. You would have to search the workaround section and the forum to see if you can find it.

There it is: manual.limesurvey.org/Workarounds:_Manip...ble_Text.29_question
Demo: www.partnersinc.biz/surveys//index.php?s...32&newtest=Y&lang=en

But you may have to adjust this depending on which template you are using.


Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 1 mois #126305 par DOwen
DOwen a répondu au sujet : How to create a question with the option to add another line?
I've tried this with array questions to test it (as well as other question types) but cannot get it to work. Whether I put the scipt inside the .JS file or the question/group description :(

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 1 mois #126307 par Mazi
Mazi a répondu au sujet : How to create a question with the option to add another line?

DOwen écrit: I've tried this with array questions to test it (as well as other question types) but cannot get it to work. Whether I put the scipt inside the .JS file or the question/group description :(

Since the JavaScript code depends on the HTML structure and thus on the template, that is probably the reason this is not working.

Please post a link to an activated test survey so we can have a look. It may be easy to fix if it is just a typo or a different class name within the HTML structure but if the template structure is completely different, you may need some professional help to adjust everything (feel free to ping me at Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser.).


Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 1 mois - il y a 3 ans 1 mois #126308 par DOwen
DOwen a répondu au sujet : How to create a question with the option to add another line?
Hi thanks for your reply!

Here's a link to the activated test survey: Test Survey

I have moved the Array question to the beginning, ignore the rest of the survey. It seems that even the plus and minus buttons are no longer appearing now.

Thank you!
Dernière édition: il y a 3 ans 1 mois par DOwen.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 1 mois #126309 par tammo
tammo a répondu au sujet : How to create a question with the option to add another line?
huddle.rockit.com/index.php/224571?lang=en

Not Found

The requested URL /index.php/224571 was not found on this server.

Did you activate the survey?

Tammo


Tammo ter Hark at Tools for Research
Proud developers of the TFR Responsive Limesurvey template
toolsforresearch.com/limesurvey-responsive-template

Connexion ou Créer un compte pour participer à la conversation.

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant

Inscrivez-vous à notre Newsletter!