ERPNext Conference 2019* Blog

On_update_after_submit event is not working



In Custom Script, what event can I use to run the code when “Update” button is clicked after the document has been Submitted?

Example: frappe.ui.form.on(“Sales Order”,{{event}},function(from){

Thanks a lot!



Check all doc events here


Hi @kolate_sambhaji,

Thanks for your reply, but none of them seemed to work on clicking “Update” after submitting the document.


@Tanuj if you have custom app, then you can check ‘on_update’ event from your app file.

Also, for custom script, you can use following code

frappe.ui.form.on("Sales Invoice", "refresh", function(frm) { 
          msgprint("on update");


on_update_after_submit is not working.

Anyone find its working?

I need event call after update on submitted document.


on_update_after_submit works with hooks