I'm trying to build a filter and for that I want my client to be able to select a few options, which I use as classes for in my filter.
I chose for a checkbox field and set it up in the backend. Now I'm trying to retrieve the data on the HTML side, but I can only retrieve ALL values, instead of only the selected ones.
This is how my HTML/twig markup looks like
{% for option in entry.offerMinimumPrice.options %}
{% if option.selected %}
{{ option }}
{% endif %}
{% endfor %}
With this code none of the values gets displayed in the front end. When I remove the conditional statement, all values get displayed (instead of only the selected ones).
Can anyone tell me what I'm doing wrong? Thanks!
offerMinimumPrice
field? – Brad Bell Sep 22 '15 at 2:55