Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello,
I'm looking to make our "gift note" field compulsory. Can someone please tell me how this would be done? I reached out to the theme developers but they can't help as this would be to do with the code.
Please let me know what details/code you would need to see. Thank you.
https://indigoandjade.com.au/cart
Thank you, I found it in the code, would i put "required" in the code, and where?
},
"gift-note": {
"type": "gift-note",
"settings": {}
},
"order-note": {
"type": "order-note",
"settings": {}
Hello @indigoandjade ,
Solution is already available in your theme.
You have to just review it and apply according to your needs.
Check the 'agree to terms' checkbox field and 'postal code' input field. They are working the same as you need for the gift note field.
Regards
Naveen
Hi Naveen,
Thanks for your reply!
I've looked within the themes editor and you can see below that it's not available as part of the theme, it has to be added into the code
Please correct me if i misunderstood you. Do you know how to edit this in the code? I found it and added "required" but it doesn't seem to work.
Yes it has to be added into the code.
Please review the existing code and how it's working. Once you find it you can apply the same in the gif field.
In order if you need me to implement it you can drop an email to discuss further.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025