How can one rename that default Save button name easily in frappe erpnext?
Hii !!
Can anyone suggest me a way to do this?
Hi !
You can do it easily using this commande :
frappe.ui.form.on('DocType Name', { // Name of your Doctype
refresh: function(frm) {
frm.page.set_primary_action(__('Mon Nouveau Texte'))
}
});
You can also use below code to apply this functionality to All Doctypes and include that file in app_include_js in hooks.py
frappe.ui.form.on("*",{
// Your Code here
})