I have a couple form fields I need to format differently and am trying to use a IF
statement to find the fields when rendered, but doesn't seem to be working as the documentation suggests.
I want to format country
and state
differently, but the code doesn't like what I'm trying.
{% for field in customerfields %}
{% if field.name != 'country' or 'state' %}
{{ field.label.upper }}
<div class="FormRow">
{{ field }}
</div>
{% else %}
<div class="FormRow">
<div class="StyledSelect">
{{ field }}
</div>
</div>
{% endif%}
{% endfor %}
How do I search for more than one field? Is there a better way to do this?