- Posts: 47
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Assessments with personalized messages depending on the score.
- moisespaivaspi
- Topic Author
- Offline
- Senior Member
Less
More
6 years 4 months ago #161037
by moisespaivaspi
Replied by moisespaivaspi on topic Assessments with personalized messages depending on the score.
Hmmm I'm understanding logic.
So in my case when wanting to calculate and present a message depending on the result of two groups what would be an example?
With best regards and thanks again.
Moisés
So in my case when wanting to calculate and present a message depending on the result of two groups what would be an example?
With best regards and thanks again.
Moisés
Attachments:
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10632
- Thank you received: 3697
6 years 4 months ago #161038
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Assessments with personalized messages depending on the score.
Place an equation question for the "Score" in each group and then another "Total" equation question that sums the "Score" questions. Base your tailoring on the "Total" question.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- moisespaivaspi
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 47
- Thank you received: 0
6 years 4 months ago #161039
by moisespaivaspi
Replied by moisespaivaspi on topic Assessments with personalized messages depending on the score.
I do not understand very well now.
Can I send you my survey and can you exemplify one of the conditions?
When I look at an example, I'll be able to replicate in other conditions that are missing.
Best regards.
Can I send you my survey and can you exemplify one of the conditions?
When I look at an example, I'll be able to replicate in other conditions that are missing.
Best regards.
Attachments:
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10632
- Thank you received: 3697
6 years 4 months ago #161041
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Assessments with personalized messages depending on the score.
I'm sorry, I do not have the time to go through your survey.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- moisespaivaspi
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 47
- Thank you received: 0
6 years 4 months ago #161042
by moisespaivaspi
Replied by moisespaivaspi on topic Assessments with personalized messages depending on the score.
It does not matter. It has helped me a lot.
Thanks for all the help.
Best regards.
Moisés
Thanks for all the help.
Best regards.
Moisés
The topic has been locked.
- moisespaivaspi
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 47
- Thank you received: 0
6 years 4 months ago #161056
by moisespaivaspi
Replied by moisespaivaspi on topic Assessments with personalized messages depending on the score.
Hello Tpartner.
I've been trying to implement the example of one of my conditions during the day but the result is always the same. When I want to join the two conditions with an "AND" it tells me that the syntax is not supported.
Can you tell me how to interlink the two conditions?
Best regards.
Moisés
I've been trying to implement the example of one of my conditions during the day but the result is always the same. When I want to join the two conditions with an "AND" it tells me that the syntax is not supported.
Can you tell me how to interlink the two conditions?
Best regards.
Moisés
Attachments:
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10632
- Thank you received: 3697
6 years 4 months ago - 6 years 4 months ago #161061
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Assessments with personalized messages depending on the score.
Please refer to the manual - Expression Manager --> Access to functions --> if
- manual.limesurvey.org/Expression_Manager#Implemented_Functions
The syntax is:
So, your example would be:
- manual.limesurvey.org/Expression_Manager#Implemented_Functions
The syntax is:
Code:
if(test, result_if_true, result_if_false)
So, your example would be:
Code:
if(scoreP2A < 28 AND scoreP2B < 18, 'YESSSSSS', '')
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 6 years 4 months ago by tpartner.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11756
- Thank you received: 2753
6 years 4 months ago #161062
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Assessments with personalized messages depending on the score.
Well, you have at least a few syntax errors. I didn't test it and I can't tell you if the idea itself will work, but I am pretty sure that the second "(" in your syntax is not correct.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11756
- Thank you received: 2753
6 years 4 months ago #161063
by holch
the second one is scoreP2B.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Assessments with personalized messages depending on the score.
tpartner wrote:
...but, I don't understand the logic - if scoreP2A is less than 18, it is also obviously less than 28.
the second one is scoreP2B.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10632
- Thank you received: 3697
6 years 4 months ago #161065
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Assessments with personalized messages depending on the score.
Duh...fixed...
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11756
- Thank you received: 2753
6 years 4 months ago #161067
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Assessments with personalized messages depending on the score.
At least now I know for sure that my response wasn't totally stupid. Haven't played with LS in a while and feel that I am getting rusty.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- moisespaivaspi
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 47
- Thank you received: 0
6 years 4 months ago #161080
by moisespaivaspi
Replied by moisespaivaspi on topic Assessments with personalized messages depending on the score.
Good Morning.
It's already working. The problem was syntax.
Thank you very much.
You all taught me a lot.
Best regards.
Moises Paiva
It's already working. The problem was syntax.
Thank you very much.
You all taught me a lot.
Best regards.
Moises Paiva
The topic has been locked.