cancel
Showing results for 
Search instead for 
Did you mean: 

et_FORM_DATA_UPDATE is triggered when user cancels document

Former Member
0 Kudos

I am performing some data edits on et_form_data_update (before action) and that works well when the user presses update, but this event is triggered when the user right clicks to cancel the document. Then my edits tell them they have fix things before the cancel is allowed.

Is there some way to tell (from within et_form_data_update) that they have requested to cancel the document so that I can abort my edits?

Thanks alot!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

OK, not very hard.

on before menu click on menu item 1284 (cancel) set a global flag that indicates cancel pressed. Test that flag in data_update to prevent edits.

on after menu click be sure to set off the flag!