> For the complete documentation index, see [llms.txt](https://shoppad.gitbook.io/infinite-options/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shoppad.gitbook.io/infinite-options/troubleshooting/my-required-field-isnt-working.md).

# My Required Field Isn't Working

If you've set up a required field but customers are still able to add a product to their cart without filling it in, you're in the right place. Before troubleshooting, check which situation applies to you.

***

### **Are customers adding from a collection page or quick view?**

If your store has a quick view pop-up or quick add button on collection pages, customers can add products to their cart without ever visiting the product page. Because Infinite Options loads on the product page, required field validation doesn't run in that flow and can't be enforced there.

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FglwgaFVh2VmGBjtIbnDb%2Fuploads%2FaXClGB6Kb6GzDTunH8cW%2Fquick%20view.gif?alt=media&token=4fbec54a-266a-483b-bf5a-68e6eee145ee>" %}

#### There are two ways to handle this:

1. Disable quick add/quick view for products that use required options. This is usually found in your theme settings under the collection page layout.
2. Redirect the quick view button to the product page instead of opening a pop-up. Some themes support this natively; others may need a small code edit.

There's no way to make options required within a quick view or quick add flow without redirecting to the product page first.

***

### **Are customers bypassing required fields on the product page itself?**

If you have already added a placeholder to the dropdown menu and customers can still add to cart without completing the required field, this is a known compatibility issue with certain themes. There's a straightforward fix that requires a snippet of custom code. Our team will help add this with a collaborator's request.

### **How to check**

Preview your product page using the Infinite Options preview link. Look for a red banner at the bottom of the page with the following message:

"This theme's cart will require a custom configuration in order to work with the bundle feature and required options. Please reach out to our team for assistance."

<div data-with-frame="true"><figure><img src="/files/o62mHSCrc4741T6i48lk" alt=""><figcaption></figcaption></figure></div>

If you see this banner, the fix is needed.

You can also test by leaving a required field empty and clicking Add to Cart. If the product gets added without any warning or pop-up, required field validation is not working on your store.

If validation is working correctly, you will see a pop-up message prompting the customer to complete the required field before continuing.\ <br>

<figure><img src="/files/cIXBM7Ycdn4Y59hUNYLA" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/RxRf3UmnliulLgddEt0t" alt=""><figcaption></figcaption></figure>

### **How to fix it**

This requires a small code snippet added directly to your theme. It's not something you can configure in the app settings. Reach out to our support team through Yedric or the Help section of the app dashboard, and we'll take care of it for you.

### **What's happening behind the scenes - "The Technical Stuff "**

Infinite Options needs to recognize your theme's Add to Cart button in order to run validation before a product is added to the cart. Some themes render that button in a way that IO can't detect by default, which is why the fix needs to be applied directly to your theme code.
