How to trigger an alert?

I would like to show one of those retool-y alert modals… thanks!

If you add a modal to an app, you can open/close it using JS:
modal.open()
Opens a modal
modal.close()
Closes the modal
Change the modal settings, and build your alert inside it.
You’ll need to hide the button somehow though, i’d recommend css inside a text field with Render HTML checked:

._retool-container-modalname { display: none; }
1 Like

thanks!

you also might be interesting in this!


2 Likes

Is that new @abdul-nimeri ? Would you do {title: ‘hey’, description: ‘description text’}?

yeah it’s reasonably new! and we have autocomplete docs for it :wink:


4 Likes