Welcome, Guest
Username: Password: Remember me

TOPIC: Cannot create a Variable-Length Array (Multi Flexible Text) question

Cannot create a Variable-Length Array (Multi Flexible Text) question 2 years 2 weeks ago #85188

  • Sartan
  • Sartan's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 17
  • Karma: 0
I'm trying to create a question like this:
www.partnersinc.biz/surveys//index.php?s...32&newtest=Y&lang=en

The first row is the only one initially visible, but each time you press the [+] button, you see one more row.

I'm following the instructions on
docs.limesurvey.org/tiki-index.php?page=...exible_Text_question

Step 1 is "Set up your survey to use JavaScript (See instructions here)
Step 2 is: "Add the following script to your template.js file."
Step 3: "Replace "QQ" in the function call at the end with the question ID."
I did this on Line 180 in the template.js file. I've pasted the contents of my template.js file into pastebin.com/QFhZV2iv.

Step 4: "Create one or more Array (Multi Flexible Text) questions"
I created an array question with question-id called "Associations".


Please help.
Last Edit: 2 years 2 weeks ago by Sartan.
The administrator has disabled public write access.

Solved 2 years 2 weeks ago #85232

  • Sartan
  • Sartan's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 17
  • Karma: 0
I solved the problem by doing 2 things:
1) I used the question ID, and not the question code, in the template.js file (note to self: when I make a copy of the template, I should not expect to find the copy in the same folder as the originals (/limesurvey/templates). Rather, the copies are in /limesurvey/upload/templates)
2. I switched from clear_logo template to "default" template and things just work.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.101 seconds
Donation Image