We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug
When using a dot in a question name triggers do not work
Triggers work with dots in question name
Create a question with a dot in question name. Use a trigger with this question name.
Test code
{ "pages": [ { "name": "page1", "elements": [ { "type": "dropdown", "name": "question1", "choices": [ "item1", "item2", "item3", "item4" ] }, { "type": "text", "name": "question.name2" } ] } ], "triggers": [ { "type": "setvalue", "expression": "{question1} anyof ['item1', 'item2']", "setToName": "question.name2", "setValue": "one" }, { "type": "setvalue", "expression": "{question1} anyof ['item3', 'item4']", "setToName": "question.name2", "setValue": "two" } ] }
The text was updated successfully, but these errors were encountered:
Triggers referencing question names with dot not working #2420
acf5b99
@dasboe I have fixed the issue by commit above.
Thank you, Andrew
Sorry, something went wrong.
Great - thanks so much for the quick fix Andrew! Björn
There is still an issue with dots in triggers. A slightly different example to the above is not working correctly:
{ "pages": [ { "name": "page1", "elements": [ { "type": "dropdown", "name": "question.name1", "choices": [ "item1", "item2", "item3", "item4" ] }, { "type": "text", "name": "question.name2" } ] } ], "triggers": [ { "type": "setvalue", "expression": "{question.name1} anyof ['item1', 'item2']", "setToName": "question.name2", "setValue": "one" }, { "type": "setvalue", "expression": "{question.name1} anyof ['item3', 'item4']", "setToName": "question.name2", "setValue": "two" } ] }
@dasboe I have created the separate issue.
andrewtelnov
No branches or pull requests
Are you requesting a feature, reporting a bug or asking a question?
bug
What is the current behavior?
When using a dot in a question name triggers do not work
What is the expected behavior?
Triggers work with dots in question name
How would you reproduce the current behavior (if this is a bug)?
Create a question with a dot in question name. Use a trigger with this question name.
Provide the test code and the tested page URL (if applicable)
Test code
Specify your
The text was updated successfully, but these errors were encountered: