Override js file using custom app

While customizing onload function using custom app

first it run custom app onload function then erpnext onload function

i need to replace erpnext onload function with custom app onload function

Did you find a way to overwrite the core doctype’s “frappe.ui.form.onload” function using custom app?

frappe.ui.form.off(“Fees”, “onload”)

cur_frm.cscript.onload= function (frm) {

console.log("hello ..............................s")

}

1 Like