Can I rename the “Submit” button without losing its connection to the submission functionality?
For the one doctype, then you can easily set using the client script.
Please check it.
frappe.ui.form.on('DocType', {
refresh: function(frm) {
$('button[data-label="Submit"]').html('<span>Approved</span>');
}
});
Output:
Please set your doctype name.
Then reload Ctrl+Shift+R and check it.
3 Likes