Enable/Disable submit button from Checkout extension

Shopify Partner
20 1 4

I'm developing a checkout extension. It's just a mandatory checkbox that the user needs to check in order to complete the order.
I want to be able to either:

- enable/disable the submit button on the checkout page when this box gets checked/unchecked

- prevent checking out when the user clicks the submit button if the checkbox hasn't been checked.


Reply 1 (1)

Shopify Staff
2731 299 769

Hi WildData,


If you're looking to adjust the logic of how the checkout works (preventing checkout based on conditions) then I believe you'll need to create a Shopify Function to achieve this. Have you looked into functions yet?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog