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

TOPIC: Unique Suffix by Row for an Array Question

Unique Suffix by Row for an Array Question 2 years 8 months ago #106875

  • tpartner
  • tpartner's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 6573
  • Thank you received: 1477
  • Karma: 579
Oops, for 1.92, that line should have bees this:
$('#question'+qID+' tbody[id^="javatbd"]:eq('+(i-1)+') input[type="text"]').after(val);

And you had one small syntax error - this {37581}, should be this {QID}.

Here is a working version:

File Attachment:

File Name: limesurvey...1978.lss
File Size:25 KB
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.

Unique Suffix by Row for an Array Question 2 years 8 months ago #106881

  • rezyface
  • rezyface's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Thank you so much! Working like a charm now!

Do you have any specific website / book in mind that you would recommend for learning Javascript? Any website/book that would focus on Javascript as it applies to LimeSurvey?

My background: I use SAS professionally (been writing SAS programs that interact with the LimeSurvey SQL tables - quite fun) and I know a little Java as well as a much smaller amount of Perl. My HTML / JS knowledge is unfortunately minimal and any JS I have used in previous Lime surveys has been done by scouring the forums / manual and editing/testing copied code to make it work for my purposes.

Again, big thank you for your time!
The administrator has disabled public write access.

Unique Suffix by Row for an Array Question 2 years 8 months ago #106883

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9586
  • Thank you received: 1375
  • Karma: 390
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (use private message).
The administrator has disabled public write access.
Time to create page: 0.383 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form