Existing refresh trigger will not work if i have added refresh trigger in custom script

Hi All,

  1. I have written a custom script for DocType Purchase Order on refresh trigger event.
  2. But due to this the existing refresh trigger is not working.

How to make both working, please suggest

Thanks, Rohit

1 Like
frappe.ui.form.on("Purchase Order", "refresh", function(frm) {
  // your custom code
})

Hi Nabin,

It is working now thanks for your reply.

Thanks, Rohit

1 Like