The CreatorCon Call for Content is officially open! Get started here.

[UI Builder / Workspace] How open a modal instead of a page from side navigation button?

Fernanda Maia F
Tera Contributor

Hello, everyone!

 

Is it possible to open a modal instead of a page by clicking on Side Navigation button?

 

Thanks in advance for any help 🙂

 

FernandaMaiaF_0-1757711230432.png

 

9 REPLIES 9

Hi @Fernanda Maia F ,

please bind this modal opening to "Page Property Change" event instead of "Page Ready" and try to send there for example true value. If this doesn't work, try to send current timestamp each time this is clicked, meaning the time will always change and it should trigger the new page load request again. 

 

Please mark as helpful, if this solution helped you.

 

Thank You

How to pass the time in the parameters?

@Fernanda Maia F , i have no idea whether this will work but in your chrome_toolbar JSON update the JSON like this:

 

"routeInfo": {
"route": "your-page-route",
"fields": { // Here are your mandatory URL parameters, make sure that your page have it with the exact name (mine is time-stamp)
"time-stamp": Date.now(),
},

Dibyaratnam
Tera Sage

I dont think thats a cache issue rather it will work that way.  You have added it on page ready event, so once the page is ready it will show up for the first time. after that if you refresh again then only it will come up again, because the page ready event runs only once. and the navigation icons are there only for page redirection and no any events mapped to it, so you can't trigger that open modal dialog event again. so it will not open. 

Is there no other way to trigger a modal from the side navigation button?

The inbox do not open a page either, just a side panel. How is this done?