Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: get answers from previous questions on using jquery code in template.js

Re: get answers from previous questions on using jquery code in template.js 2 years 7 months ago #75333

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
So, sounds like I mis-spoke, and template.js is already parsed by EM (as long as you are not in question preview mode).

For accessing the answer text instead of answer code, you can use Qcode.shown or SGQA.shown. Some some question type, like checkbox (whose value is 'Y' if checked), you may need to use Qcode.question to get the text of the question.
The administrator has disabled public write access.

Re: get answers from previous questions on using jquery code in template.js 2 years 7 months ago #75334

  • mmirasol
  • mmirasol's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 42
  • Karma: 0
Hooray! That works. =) Really good work with the EM, Tom. I will study it more in detail. =) Please have a look at the condition issue I posted though. Might be a problem in the stable release. Thanks a lot.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.096 seconds
Donation Image