Add an action to show custom alert (dark popup in the bottom)

Thank you Coda for adding the option to disable snackbars (alerts) for buttons. Oftentimes my buttons contain dozens of lines of code and result in “200 rows added, 10 rows modified, and hyperlink opened”, so the ability to suppress this information is a very welcome feature:
image

However, now there’s another problem. I don’t have an easy way to signalize to user when the action has actually completed, especially if the user has already scrolled away or went to another section.

Could you please add an action function to show an alert with custom text?

Minimally with just a text:

Alert("All changes saved")

Ideally with two more options: auto-hide or keep on screen, and a custom undo action (a reference to a button or an inline-coded Action)

Alert("A company with 5 accounts is created", true, thisRow.[Delete company and all related records])

P.S. Calling it an “alert” is also OK. I’m just coming from Android background where these are called snackbars.

10 Likes

Is there any update on this feature request, or a workaround anyone has developed?

The only workaround I know of is to display a text box on the page and update that text with your action complete message to give the user some sort of feedback. Not ideal but it works

1 Like

I’ve done this workaround with OpenWindow, but the first part about the invalid URL is baked in. The second part is actually a part of the URL :slightly_smiling_face:

I think you can show custom alerts with a custom pack that would throw an error. Lemme try later

1 Like

Theres a beer waiting for you if you can solve it @Paul_Danyliuk :slight_smile:

1 Like

I am desperatly looking for something like an alert() function.
Any news on this?