Welcome to the LimeSurvey Community Forum

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

Example of assessment value in admin-email

  • RobertHaringsma
  • RobertHaringsma's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #205788 by RobertHaringsma
Example of assessment value in admin-email was created by RobertHaringsma
I want to mail the scores from a questionnaire to myself, but after doing some simple assessment on it (multiplication). I did this with limesurvey 5 years ago, but can't make it work anymore.


I used to just past a code like this in the admin mail:

{sum{492152X2X2vraag1},{492152X2X2vraag2}}


That doesn't seem to work anymore. I know the questioncodes are right, but can't seem to make the multiplication work. Can anyone help me with that?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #205789 by tpartner
Replied by tpartner on topic Example of assessment value in admin-email
Wrong syntax.

Code:
{sum(492152X2X2vraag1, 492152X2X2vraag2)}

I would also use question codes - manual.limesurvey.org/ExpressionScript_-...#Access_to_variables

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: RobertHaringsma
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #205790 by Joffm
Replied by Joffm on topic Example of assessment value in admin-email
Hi, Robert,
this is a question of type "multiple numerical input"?
IMO bettter than using the SGQA codes you may use the question code directly.

But your main error are the curly brackets
NOT:
{sum{492152X2X2vraag1},{492152X2X2vraag2}}
BUT:
{sum(492152X2X2vraag1,492152X2X2vraag2)}

And with question codes
{sum(Q1_vraag1,Q1_vraag2)}

Joffm

By the way: You confuse the readers by saying

doing some simple assessment on it (multiplication)

but you use the sum-function.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: RobertHaringsma
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose