Checkout Extensibility - limit character in address field in checkout

Checkout Extensibility - limit character in address field in checkout

paulmaliakel
Shopify Partner
6 0 1

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? 

Replies 2 (2)

paulbalu
Shopify Partner
2 1 9

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

jessie_monument
Shopify Partner
13 0 7

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?extens...