Open a modal when opening a page

I would like to open a modal (depending on a condition) when a specific page is opene :
If I go to page “MyPage”, I want that “ModalA” automatically opens if a value is not already set.

Is there a way to do this ? I tried with Page Queries with workflows, but couldn’t have it working.

Hi, Now you can apply action on page load, including opening a modal, running a workflow , running a component action and more…
Here is how to implement it:

To add to Mohammed’s point, you may also need to add a delay before the condition to display IF you’re referencing a component on the page since a component on the page takes some time to load… might be a more efficient way to accomplish this, but ya - I’ve run into that issue before.

1 Like