How to Open a Polaris Modal (Without User Click)

Hello,

I am using the Polaris Modal web component in a Checkout UI Extension for the thank you and order status pages, and after reviewing the documentation, it appears that the modal can only be opened when a button is clicked.

Is it possible to open this modal directly without any button click?

Is there any workaround to achieve this?

I have already checked some older posts where people were asking for the same feature. I would like to request the Shopify team to please make this available soon.

1 Like

Hey @Hitesh_Apps :waving_hand:

At the moment, enabling programmatic modal opening isn’t something that’s on our roadmap. There’s a bit more info here:

That said, we are aware it’s something folks would like and it has been noted on our end. Hope this helps, let me know if I can clarify anything more on my end here :slight_smile: