Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Can I create custom arrays?

Can I create custom arrays? 8 Monate 6 Tage her #106528

  • christianC
  • christianCs Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 2
  • Karma: 0
hello everybody,

For a university project study I need to make an array that looks like:

Do you:
smoke? No Yes [Number]per day
Drink No Yes [Number] per day

and so on....
is a single answer per row with an added number input.


Thank you for your time.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Can I create custom arrays? 8 Monate 6 Tage her #106530

  • holch
  • holchs Avatar
  • ONLINE
  • LimeSurvey Team
  • Beiträge: 2957
  • Dank erhalten: 380
  • Karma: 124
That is a normal array question. You can choose your scale (in this case "Yes / No". I think there is even a "Yes / No" scale already built in, but it includes "yes / no / uncertain".

But just choose the normal array question and you are totally free to create your own array header.

manual.limesurvey.org/Question_types#Array
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Can I create custom arrays? 8 Monate 5 Tage her #106534

  • christianC
  • christianCs Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 2
  • Karma: 0
Thank you for your answer. Yes it is a yes/no question but the third field should be a text field or number field. Maybe I did not explained clearly enough. I know that I can choose array I define the header and the rows but my question is if I can customize the row content to have mixed content

to be like:

Question text

Answer1 [radio button]No [radio button]Yes [number input]some text
Answer2 [radio button]No [radio button]Yes [number input]some text


the two radio buttons to be like a single answer per row and the number input mandatory if yes selected.

I presume I need some javascript for this. I have seen the topic with grouping of items but is not very doable when you have a list of 50 questions in an array to make this kind of question grouping. That's why I as if is a way to make my own custom array with NO/Yes and a input text.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Can I create custom arrays? 8 Monate 5 Tage her #106551

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4367
  • Dank erhalten: 828
  • Karma: 381
You will need to add a multiple-short-text question after the array and use JavaScript to move the text inputs into the array.

Here is a similar solution - www.limesurvey.org/en/forum/design-issue...to-text-input#102550


.
Cheers,
Tony Partner

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

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: christianC
Moderatoren: ITEd
Ladezeit der Seite: 0.147 Sekunden
Donation Image