I want change label Name to Plan Name in staffing plan form.
I try with customise form and client script but not working.
I want change label Name to Plan Name in staffing plan form.
I try with customise form and client script but not working.
Only you can change the Label of field from customize form
By this the Name of Doctype is Changed.
@mohsininspire need to change Label of Field
From Name to Plan Name
The Name field auto generated base on naming setting
Hi @mohsininspire,
Please apply the client script for that.
frappe.ui.form.on('Staffing Plan', {
refresh: function(frm) {
setTimeout(() => {
frm.fields_dict['__newname'].df.label = 'Plan Name';
frm.refresh_field('__newname');
}, 50);
}
});