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?