Checkout Extensibility - limit character in address field in checkout

Topic summary

Goal: Enforce a 30‑character limit on the address field during checkout after moving from checkout.liquid to Checkout Extensibility. Seeks where to place custom JS in the new setup.

Key guidance:

Notes:

  • No code snippet or step-by-step solution was shared yet.
  • One contributor is working on a similar approach and may provide more detailed instructions later.

Status: Unresolved/ongoing. The suggested path is to implement validation via a Checkout UI extension (checkout.js), potentially using the documented pattern to block progress when the address exceeds the character limit.

Summarized with AI on December 27. AI used: gpt-5.

Hello!

I have a simple JS code in my checkout.liquid to set a character limit of 30 characters to address field in checkout.

Is there a way I can do the same with new checkout extrensibility?

Where can JS codes in the new checkout?

1 Like

You might have to create a checkout UI app and add the code to checkout.js

There are basic instructions here that might get you in the right direction. I am working on a similar solution now so I might be able to post more instructions when I am done.

https://shopify.dev/docs/apps/build/checkout/cart-checkout-validation/block-checkout-progress?extension=react