Hi,
Is it possible to prioritize rules that have been created in logic?
Best regards,
Anne Marte
Hi,
Is it possible to prioritize rules that have been created in logic?
Best regards,
Anne Marte
Hello,
Thank you for the update. Yes, you can configure a Set Value trigger and build a logic expression to complete this task. Consider this example: https://plnkr.co/edit/nfsu0wQ2U2kAsqKm.
JSON{
"pages": [
{
"name": "page1",
"elements": [
{
"type": "boolean",
"name": "question1"
},
{
"type": "boolean",
"name": "question2"
},
{
"type": "text",
"name": "question3"
}
]
}
],
"triggers": [
{
"type": "setvalue",
"expression": "{question1} = true",
"setToName": "question3",
"setValue": "1"
},
{
"type": "setvalue",
"expression": "{question2} = false and {question3} empty",
"setToName": "question3",
"setValue": "2"
}
]
}
Please let me know if this configuration works for you.
Thank you very much for answer! I wonder if it is possible to do the same in the field "Expression?
You're always welcome!
To help me follow up with you regarding your recent question, please share an example/demo so that I can better understand the task.
I look forward to your reply.
Hi Anne,
Please elaborate on your usage scenario and clarify what you mean by prioritize.
I look forward to your reply.
For example:
If question1 = "yes", I want question3 to be 1,
But if question2 = "no", I want question3 to be 2. But 1 has a higher priority than 2, so if I answer both question1 = yes, and question2 = no, I want question3 to be 1.
Was that understandable?
For example:
If question1 = "yes", I want that question3 becomes 1,
But if question2 = "no", I want that question3 becomes 2. But 1 has a higher priority than 2, so if I both answer question1 = yes, and question2 = no, I want that question3 becomes 1.
Was that understandable?