Hard to give solutions without seeing the full code.
Also use:
frappe.ui.form.on("My DocType", "referesh", function(frm) { });
Hard to give solutions without seeing the full code.
Also use:
frappe.ui.form.on("My DocType", "referesh", function(frm) { });