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

More
4 years 8 months ago - 4 years 8 months ago #85188 by Sartan
Sartan created the topic: Cannot create a Variable-Length Array (Multi Flexible Text) question
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: 4 years 8 months ago by Sartan.

Please Log in to join the conversation.

More
4 years 8 months ago #85232 by Sartan
Sartan replied the topic: Solved
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.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now