Shopify themes, liquid, logos, and UX
Hello there! I'm trying to make this one option on our contact from not required. Not everyone remembers their order number. Can someone help?
<div class="five columns alpha">
{% assign order_attr = 'contact.form.order' | handle %}
<label for="contactFormOrder">{{ 'contact.form.order' | t }} </label>
<input type="order" id="contactFormOrder" name="contact[{{ order_attr }}]" placeholder="{{ 'contact.form.order' | t }}" autocapitalize="words" value="{% if form[order] %}{{ form[order] }}{% elsif customer %}{{ customer.order }}{% endif %}" required="required">
</div>
Hello @LesliDT ,
Remove 'required' attribute
<div class="five columns alpha">
{% assign order_attr = 'contact.form.order' | handle %}
<label for="contactFormOrder">{{ 'contact.form.order' | t }} </label>
<input type="order" id="contactFormOrder" name="contact[{{ order_attr }}]" placeholder="{{ 'contact.form.order' | t }}" autocapitalize="words" value="{% if form[order] %}{{ form[order] }}{% elsif customer %}{{ customer.order }}{% endif %}" >
</div>
Thanks
Please check the screenshot below.
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024