on 10-18-2007 9:46 PM
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!
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.