Hello, I was wondering if anyone could help, I need to make a question drop down box on my page, but I need the add to cart button not able to be selected until the question box has been answered and was wondering if anyone had examples of the code for such a job? Many thanks in advance for any assistance
There are many previous pages about this in the forum that you can read.
https://www.wix.com/corvid/forum/community-discussion/enable-disable-a-button-when-user-didn-t-fill-out-the-form
https://www.wix.com/corvid/forum/community-discussion/enable-a-form-submit-button-if-all-input-elements-are-valid
https://www.wix.com/corvid/forum/community-discussion/multiple-inputs-enable-and-disable-a-button
https://www.wix.com/corvid/forum/community-discussion/how-can-i-conditionally-submit-a-form
Thank you very much for your help, I think I have already spotted the one which apply’s to my issue.
I have had a chance to go through the code but as my request specifically talks about the add to cart button on the product page which I am not sure how editable this is would you be able to point me in the direction of any specific code that relates to this? Thanks again for your help
Wix Stores have their own support pages that you can read about the add to card button.
https://support.wix.com/en/article/adding-a-standalone-add-to-cart-button
https://support.wix.com/en/article/adding-a-standalone-add-to-cart-button
You would need to see if you can apply any code to that button itself if you have used it.