How can we set readonly form using client script?
use below script
frappe.ui.form.on("Doc_type", {
onload: function(frm) {
frm.set_read_only();
frm.disable_save();
frm.page.clear_primary_action();
}
}
});
3 Likes