Welcome to the LimeSurvey Community Forum

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

Access answer by question code in PHP or js

  • sodiumchl
  • sodiumchl's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 10 months ago #212268 by sodiumchl
I have an equation question with question code Equation1. I can access it in other questions using {Equestion}. How can I access it in plugin php similarly (I mean without knowing $qid)? 

Is it possible to access it directly in javascript too via the question code?

 
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 years 10 months ago #212281 by DenisChenu
Replied by DenisChenu on topic Access answer by question code in PHP or js

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 topic has been locked.
  • sodiumchl
  • sodiumchl's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 10 months ago #212290 by sodiumchl
Replied by sodiumchl on topic Access answer by question code in PHP or js
I found an answer for javascript here:
forums.limesurvey.org/forum/can-i-do-thi...stions-in-javascript

I was also looking for how to do this in php for plugins. I'll try
LimeExpressionManager::ProcessStepString($string, $replacementFields ,3 , true );

Thanks a lot!
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose