Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: creating dynamic text input

creating dynamic text input 3 years 4 months ago #98627

  • mattias01
  • mattias01's Avatar
  • Offline
  • Senior Lime
  • Posts: 79
  • Karma: 1
I insert a number in a textbox eg: 5, and the next question will create five text boxes.

Attachment print_2013-07-29.png not found



regards ..
The administrator has disabled public write access.

creating dynamic text input 3 years 4 months ago #98690

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6566
  • Thank you received: 1477
  • Karma: 578
You can do that with JavaScript but it's a little tricky if both questions are on the same page. When do you trigger the hide/show function? On every keystroke in the input or when the input is changed (which requires the respondent to click elsewhere on the page)?

Probably simpler would be a workaround like this - manual.limesurvey.org/Workarounds:_Manip...ble_Text.29_question
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.
Time to create page: 0.223 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form