How can I set a character limit in my address fields?

ptkate
Visitor
1 0 1

Hello

We'd like to be able to set a character limit in our address fields - the default is 255 and this is causing problems with our carriers.  We are shopify plus users - is there a way to do this?

Thanks

Reply 1 (1)

PaulNewton
Shopify Partner
6338 578 1343

Using javascript set a character limit on the input elements.

You may need to do this after any dom changes signaled by a page event 

 

https://stackoverflow.com/questions/9841363/how-to-restrict-number-of-characters-that-can-be-entered...

https://shopify.dev/themes/architecture/layouts/checkout-liquid#page-events    

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org