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

More
4 years 6 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.
More
4 years 6 months ago #212281 by DenisChenu

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.
More
4 years 6 months ago #212290 by sodiumchl
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