Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Greetings, Can anybody help me modify this code to make this checkout UI extension checkbox required and the checkout process is blocked until the checkbox is checked?
import {render, Checkbox} from '@shopify/checkout-ui-extensions-react';
render('Checkout::Dynamic::Render', () => <App />);
function App() {
return (
<Checkbox id="checkbox" name="checkbox">
Save this information for next time
</Checkbox>
);
}
Hi @musfiq11
You can refer to similar issue here: https://community.shopify.com/c/shopify-design/custom-field-at-checkout/td-p/446610
I hope that this is useful for you.
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via [email protected]
The link you provided is not for a similar question. this relates to the new extensions and the link provide the answer using the .liquid
It will be helpful if you could provide any proper link or accurate answer about how to do that. After reviewing the documentation I found that textFields have a required property while checkbox does not.
This should work
thank you bor..
I am missing this thing
[extensions.capabilities]
useBuyerJourneyIntercept hook is working on hover of the submit button. Problem is all other fields validations are working on click of the button. Is there any fix for this?
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024