This code works as expected...

{% if submission.symptomCheckerSymptoms == "Itching" %}
    it works
{% endif %}

... but when when multiple options are selected, it doesn't.

The field is a checkbox group. What am I doing wrong?


The solution is:

{% if "itching" in submission.symptomCheckerSymptoms.value %}
{% endif %}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.