Welcome to the LimeSurvey Community Forum

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

Array with more than 2 columns and dropdown

  • Vasari
  • Vasari's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 11 months ago - 3 years 11 months ago #199516 by Vasari
Hello everyone,

i need to design an array with dropdown options. The Participants should describe their daily modes of transportation. To make it easier and avoid high break-off rates i need pre-set answers in dropdown within the column.

I use the latest LS-Pro Version, but more improtant: i have absolutely no clue when it comes to programming and don't understand a single thing about javascrip or css or whatever (i don't even know where to insert it)

Is there any chance i can manage this??

Thank you SO much!


Here is the Screenshot of the actual array
Last edit: 3 years 11 months ago by Vasari. Reason: screenshot missing
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago - 3 years 11 months ago #199521 by Joffm
Hi,

[strike]sorry, I do not see a screenshot.
So, please try again.[/strike]

Strange, now I see it.

So, what are your drop-down colums (with which items)?
And: Is the start of "Etappe2" equal to the destination of "Etappe1"?
In this case there is a nice example here - dynamic rows and piping the value into the next row.


There are several solutions to have drop-downs in an array(numbers) or array(texts).



Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
Last edit: 3 years 11 months ago by Joffm.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago - 3 years 11 months ago #199540 by Joffm
Here a small example using your survey design.

As you see, there are the (+) / (-) Buttons to add a new row, if necessary.



Here I asked for the start address in a previous question.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 11 months ago by Joffm.
The topic has been locked.
  • Vasari
  • Vasari's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 11 months ago #199558 by Vasari
Replied by Vasari on topic Array with more than 2 columns and dropdown
Thank you very much!!

- "Start" and "Ziel" must be Textfields, where the participants can add their individual destination points. (no dropdown, free text) here the "Ziel" is equal to the "start" in the next row.
- "von" and "bis" Uhrzeit need to get preset time sets (15 min. intervalls).
- "Aktivität" and "Verkehrsmittel" will have preset answer sets as well
- "Strecke km" needs to be a free numerical input field.

Is there an "easy" solution for a "fresh lemon"? ;)

Thank you so much for your efforts and the quick reply!!!!
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #199574 by Joffm
Hi,

Is there an "easy" solution for a "fresh lemon"?

The easy solution is:
Revise your design and use only built-in features, like "short text", "date/time", "drop-down list".
Put the questions of one stage into one group, and use several groups for the stages.

If there are some wishes, some "nice to have", there cannot be an easy solution.

But tomorrow I will send a sample.

Joffm

P.S
At least a "fresh lemon" should have read the manual, the main parts,
should have studied the sample surveys
manual.limesurvey.org/ExpressionScript_sample_surveys which all are downloadable.
We all were not born as LS gurus, but had to learn as well.
In short: "Ich mag es nicht, wenn man dauernd mit Nicht-Wissen kokettiert". ;)

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #199641 by Joffm
Hi,
here the promised sample.

I offer three options:
1. An array with Buttons to add a new row
2. An array that adds a new row if the previous row is filled
3. A solution only with built-in features without javascript.

Have a look.
Investigate the javascript.
You have to adapt it, but it is really obvious, where you have to add or change something

File Attachment:

File Name: limesurvey...mple.lss
File Size:60 KB


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #199645 by Joffm
I saw that in the subquestions of A1a there is always "Etappe 2".
You have to adapt that.

Of course, a copy&paste error.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • Vasari
  • Vasari's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 11 months ago #199659 by Vasari
Replied by Vasari on topic Array with more than 2 columns and dropdown
Thank you very much! I appreciate the effort!

But there it starts. I don't even know where to add it. And yes i read the manual and it doesn't help me. That's why i said i have no clue, because i have no time to learn how to use JavaScript and all this, and i read other threads and noticed that i would save everyone time and effort, if i mention, that i am not trained in programming or whatever at all. This Survey is just a small part of my Job and i am a historian and never came in contact with JavaScript or things like this. This might seem awkward to someone who is used to this, but it is what it is.

So could you please tell me how to use it? i copy it and adapt it to my Survey, but where do i copy it in? In the textbox (after klicked "soruce") where i type in my question text ?

Thank you!
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #199669 by Joffm
Hi,
manual.limesurvey.org/Workarounds:_Manip...tc..29_in_LimeSurvey

So, for the question, just copy everything in source code mode.
And subquestions / answer options? That's mostly copy&paste in "quick add".

Maybe it was your mistake, that you posted your question in the English part. Now you got a sample survey with base language "English".
If you had posted in the German part, I'd created one in German.
In that case you would have been able just to export a question and import it into your survey.
As question and group exports are language sensitive this is not possible now.

And as I said before, and I showed this in the last group: You can do everything with built-in features without having to care about javascript / css, etc.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose