Hi, I have a custom field in my checkout that i managed to get to work and add extra info to the order, but how do i tell shopify that its mandatory to fill this custom input? and that if it doesnt have any input i would want to put out a error message to display this, any ideas on this?![]()
You’d likely do this in two ways:
- Use JavaScript to detect if the field is empty and attempt to block the customer from moving to the next step
- Use Liquid to see if that attribute has been saved and if not block the customer from proceeding to the payment step
Are you unsure on how to do that?
Do note that accelerated gateways will skip this so not sure if you’re accounted for that, and have some post order flows in place.
How would i do this check with javascript? because how is the general error handling checked with shopify? when something is filled in that is mandatory and you ask for next step, shopify returns the error handling like in the image below
Is there some preffered solutions that can help you to solve the issues but can you visit thispage? if not then you can click here to learn about it.

