Choice Field Multiple Choice Not Working

I recently discovered you can allow users to select multiple options within a choice field dropdown. However, when I try to use the snippet/value with multiple choices enabled the multiple choices don’t work. Is there a syntax change I need to make to allow users to make the multiple selections beyond just having the field Hubl code?

The choice field works when it’s single select but once I toggle “allow multiple selections” it breaks and doesn’t load any of the selected options

ex:

{% if module.style.transition_pieces == “optionA” %}

<style>

CSS here

</style>

{% endif %}

@Mikerich94 - I believe the multiple choice aspect of this property (also radio buttons) might be leading you astray. The value of such a property can contain (due to the definition) any number of a set of allowed value strings.

So perhaps you test might be more successful as:

{% if “optionA” is within module.style.transition_pieces %}

Hope I got this one right!

Steve

This is what fixed it thank you@