Variable Length Array not working

More
7 months 4 days ago #164065 by harvas
harvas created the topic: Variable Length Array not working
Hello all,

I am trying to create a dynamic array for adding and removing rows. I am using Version 3.3.0+180209 and came across the following workaround for this purpose. I have updated the custom.js of an extended theme accordingly but unfortunately the code is not working as expected. Below is the link:

manual.limesurvey.org/Workarounds:_Manip...ble_Text.29_question .

Any suggestions for changes or hints as to what might be wrong will be highly appreciated.

Thank you.

Charis

Please Log in or Create an account to join the conversation.

More
6 months 3 weeks ago #164492 by harvas
harvas replied the topic: Variable Length Array not working
Just to inform that this now has been changed to work accordingly. The following changes are in order:
Row 21-22:
$( 'div#addButton'+qID ).appendTo($( '#question' + qID + ' table.ls-answers' ).parent());
$( 'div#removeButton'+qID ).appendTo($( '#question' + qID + ' table.ls-answers' ).parent());
Row 63:
var arrayRow = '#question' + qID + ' table.ls-answers tr.subquestion-list';
Row 76:
var arrayRow = '#question' + qID + ' table.ls-answers tr.subquestion-list';
Row 87:
var arrayRow = '#question' + qID + ' table.ls-answers tr.subquestion-list';

Please Log in or Create an account to join the conversation.

More
6 months 3 weeks ago - 6 months 3 weeks ago #164497 by jelo
jelo replied the topic: Variable Length Array not working
Thanks for your post. You should add your solution to the manual. Just copy the entry and add a "LS 3.0 tested" remark after modifying the copied entry. Nobody will find this post in a few weeks, but the manual with workarounds will be in place.

Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey
Last Edit: 6 months 3 weeks ago by jelo.
The following user(s) said Thank You: harvas

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!