Is it possible to only run a condition when you open a Modal on a page?

Is it possible to only run a condition when you open a Modal on a page?

What are you trying to achieve?

i have a form in my modal… as the user opens up the modal… i want to run a condition to check some values…

and then run something like this

{{user.data.query1.status == "New" ? browser1.goto('update') : '' }}

Redirect when the open the modal…

maybe… it would be better to do the condition on the button they press… that should work better i guess…

Well there are dynamic events for modals, you can use on shown to run an event when the modal is opened.

awesome… let me see if i can find this :slight_smile:

It’s where all the dynamic events for all the components are located - in the Dynamic Events section.

1 Like