Welcome to the LimeSurvey Community Forum

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

Where to put the assignment operator

  • fransmarcelissen
  • fransmarcelissen's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 11 months ago #107463 by fransmarcelissen
Where to put the assignment operator was created 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?

Thanks
Frans
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 11 months ago #107487 by DenisChenu
Replied by DenisChenu on topic Where to put the assignment operator
Hi,

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 : manual.limesurvey.org/Expression_Manager...t_Operator_.28.3D.29

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.
The following user(s) said Thank You: fransmarcelissen
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose