Why is accepts_marketing always set to True on a form?

Highlighted
New Member
1 0 0

I have the following form that's supposed to add the tag to the customer with the filled email. But somehow, it also sets accepts_marketing to TRUE every single time. How can i avoid that?

 

{% form 'customer' %}
<div class="input-wrapper">
<label>{{ 'general.ccpa.email' | t }}</label>
<input type="text" placeholder="{{ 'general.email_placeholder' | t }}" value="" name="contact[email]" class="{% if form.errors contains "email" %}error{% endif %}" required>
</div>

<input type="hidden" id="customer_tags" name="contact[tags]" value="new_customer_tag"/>
<div class="input-wrapper">
<input type="submit" value="{{ 'general.general.submit' | t }}">
</div>

{% endform %}

 

mdomocos_0-1596552752643.png

 

0 Likes