If you set your form field to be required, then you will need to remove the novalidate attribute from the checkout form. Find novalidate, which is inside the opening tag. The code might look something like this:
Hi, I tried the solution and it only worked when I also applied the code to the ajax-cart-template.liquid. Is this something that you also had to do? Just wondering…
Hello, That worked great! Thank you. Do you know how can we change the text which appears : “Please fill in this field” as it is not from the Edit default theme content..
You can change the text of the note field within the default theme settings. From the main Shopify page, click “Online Store”, then the “…” button next to the “Customize” button for your theme. Then "Edit Default Theme Content. Then click on “Sections” and scroll down till you find the label for “Note” in the Cart section and edit the text.