Access answer by question code in PHP or js

More
1 week 4 days 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?

 

Please Log in to join the conversation.

LimeSurvey Partners
More
1 week 3 days 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 service on demand , plugin development . I don't answer to private message.

Please Log in to join the conversation.

More
1 week 3 days 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!

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now