Welcome to the LimeSurvey Community Forum

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

Antworten beim Fragetyp Matrix (Texte) über mehrere Zeilen

  • thuebner
  • thuebner's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 11 months ago #199037 by thuebner
Hallo,

ich würde gerne die Eingabe der Antworten über mehrere Zeilen mit Zeilenumbruch zulassen.
Weiß jemand, wie ich das hinbekomme?
Ich benutze die Version 3.22.14

Viele Grüße und vielen Dank!

File Attachment:

File Name: limesurvey...4292.lss
File Size:19 KB
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago - 3 years 11 months ago #199046 by Joffm
Hallo,
Du hast ja gesehen, dass man ein einzeiliges "Input"-Feld nicht dadurch mehrzeilig machen kann, indem man es höher macht.
Das ist nun einmal so: Das <input> Feld ist einzeilig.

Was Du brauchst, ist ein <textarea> Feld.
Also musst Du Deine <input> durch <textarea> ersetzen.

Eine Studentin der Uni Eindhoven hat so etwas einmal gemacht.
Sie hatte damals jedes einzelne Feld geändert.
Code:
$('input[name="{SGQ}SQ001_SQ001"]').replaceWith('<textarea id="{SGQ}SQ001_SQ001" name="{SGQ}SQ001_SQ001" cols="30" rows="5"></textarea>');
$('input[name="{SGQ}SQ001_SQ002"]').replaceWith('<textarea id="{SGQ}SQ001_SQ002" name="{SGQ}SQ001_SQ002" cols="30" rows="5"></textarea>');
...

Du kannst es sicher etwas verbessern.



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 following user(s) said Thank You: thuebner
The topic has been locked.
Moderators: Joffm

Lime-years ahead

Online-surveys for every purse and purpose