Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Show modal popup when a condition is met without any user action (no clicks)

Show modal popup when a condition is met without any user action (no clicks)

CodingCop
Shopify Partner
3 0 1

In the Shopify Checkout Extensions, the address needs to be scrubbed and if a correction is found, a modal popup should be displayed with the correct address. I referred to the documentation at:

https://shopify.dev/docs/api/checkout-ui-extensions/unstable/components/overlays/modal

 

but this example requires user action (click a link, pressable or a button). With my requirement I need to open the modal popup through code. I am unable to find any relevant documentation online.

Please Help.

Replies 2 (2)

anxiouspenguin
Shopify Partner
10 2 1

@CodingCop Did you figure this out? I am trying to do this as well.

tipserstore
Shopify Partner
5 0 7

I'm afraid this is not possible. I stumbled upon the same issue right now and found this: https://github.com/Shopify/ui-extensions/issues/2061#issuecomment-2176750475

This is a reply from one of Shopify employees, they might consider it in after purchase steps but not in the checkout itself.