Single Record Form - Are Before Update and After Update events mutually exclusive?

In a single record form, I populated the two update events like this:

Before Update: sc_alert(“BEFORE UPDATE”);
After Update: sc_alert(“AFTER UPDATE”);

Both events contain only the sc_alert lines.

When the form is run, if I click the Save button only the “AFTER UPDATE” alert is shown.

Is this a bug? Shouldn’t both be executed?

If I remove the sc_alert from the after update event, the "BEFORE UPDATE "alert is shown.

Dont use sc_alert if you want to there things out find out but use echo “BEFORE UPDATE<br>”; and so on. It is easier. An alert shows a dialog and waits for a click. sc_ajax_message should also work but I prefer a simple echo… Guaranteed to work…

thanks rr

I ended up writing everything I needed in one update event only.

I think I tried echo (and nothing got echoed) before trying sc_alert, but I’m not sure.
When I’ll have time I’ll test it better.