Solved

Can we halt fulfillment for addresses lacking house numbers?

DennisSt
Shopify Partner
8 0 3

is it possible to check if there are any numbers present in the address field?

i tried with regex ( /[^0-9]/g ) but it does not work. (it only puts it in superscript)

Any other possibility to hold back fulfillment for missing house numbers?

Screenshot 2022-12-12 120730.png

Accepted Solution (1)

paul_n
Shopify Staff
1011 133 242

This is an accepted solution.

Regex is not supported currently. You could check if the address includes each number. It's obviously quite a bit more manual to set up 10 conditions but it should work.

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.

View solution in original post

Replies 4 (4)

DennisSt
Shopify Partner
8 0 3

Screenshot 2022-12-12 120730.png

paul_n
Shopify Staff
1011 133 242

This is an accepted solution.

Regex is not supported currently. You could check if the address includes each number. It's obviously quite a bit more manual to set up 10 conditions but it should work.

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
DennisSt
Shopify Partner
8 0 3

but i did not think of it, yet. thanks for the hint

CodeThat
Shopify Partner
5 0 1

With the new cart & checkout validation API, you could actually check in the checkout if the address contains a number using an app like:
https://apps.shopify.com/address-ninja