Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Referencing questions and subquestions in JavaScript

More
8 years 10 months ago #130623 by ervit

Ben_V wrote: Nevertheless I attach you a working survey based on my previous example.


Thanks! I noticed your survey shows questions one by one, whereas mine shows questions by group. Could it be that EM doesn't have the correct values because the user hasn't pressed the "Next" button and thus the answers haven't been stored yet?
The topic has been locked.
More
8 years 10 months ago #130624 by Ben_V
Absolutely...in some cases

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
8 years 10 months ago #130632 by DenisChenu
Hi,

If question are on same page, you can not use {question.shown} or {question.NAOK} because it needs JS update.

Here you can use $("#answer{SGQ}").val() or $('#question{QID} input:text").val().

See learn.jquery.com/

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: Ben_V, ervit
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose