This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Hessel
Hessel

Hi , in my component {% if record.specialisme == ["option1"] %} works if only "option1" is selected in the backend multisect checkbox list however the if else statement is not working if I select: "option1 and option 2" cause that would be stored as ["option1","option2"]

so my important question is, how can I filter option1 from the array wilt multiple options? please let me know.

Last updated

Hessel
Hessel

I found the solution: {% if "option1" in record.specialisme %}

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.