ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

What the event for form delete have to use when delete document in java script

what the event for form delete have to use when delete document in java script

Hello,

Can you expound your use case so that the community can get a clearer picture to your problem?

Regards,

Ivan

hi iRaySpace

i need that the user when delete the payemnt entry execute some functions

Hello,

You can check this code.

Basically, you have to create an on_trash hook on Payment Entry. Every time, you delete a doctype, it will run the on_trash functions set on hooks.py.

Regards,

Ivan

1 Like

many thanks iRaySpace i will tray to use this hook instade of client script