Removing 'required' from contact page

LesliDT
New Member
1 0 1

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>

Guleria
Shopify Partner
1759 371 520

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

Want to modify or custom changes on store hire me.
Email: guleriathakur43@gmail.com, Skype: navrocks1
If helpful then please Like and Accept Solution.
Buy me a coffee ☕ My PayPal
0 Likes
dmwwebartisan
Shopify Partner
8570 2008 2711

@LesliDT 

Please check the screenshot below.

remove-required.jpg

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | Bag is a cart drawer that maximizes your sales. View app →
0 Likes