Check out the LimeSurvey source code on GitHub!

Where to put the assignment operator

2 years 9 months ago #107463 by fransmarcelissen
In the documentation about EM it is mentioned that the assignment operator (=) can be used to set the value of objects that do not accept a default value. Put where should I put this statement? I could put {a=1} on for instance a (hidden?) text display, but I noticed this does not work correctly (the value is only shown after a refresh). What is the best place to put a assignment?


Please Log in to join the conversation.

2 years 9 months ago #107487 by DenisChenu

In an hidden Equation question. You can set to in a relevance equation, but it's really not the best solution. The real solution is

In general, if you want to assign a value to a variable, you sould create an Equation question type, and use an expression to set its value.

source :

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
The following user(s) said Thank You: fransmarcelissen

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form