Validate PO Number upon checkout (B2B)

I am trying to create a function that validates the PO number upon submitting an order. I managed to create a custom field and block checkout following the documentation here: https://shopify.dev/docs/apps/checkout/validation. However, I cannot seem to do something similar for the PO Number field. According to what I can see, it only exists on DraftOrder and Order, and we can only have the Cart input when validating the cart.

Here’s a screenshot of my working custom field (the bottom one) and the OOTB PO Number field above:

Does anyone know if it is possible to validate the PO Number? And if not, is it possible to hide the field and create a custom one instead?

Best regards,

Frederik

1 Like