Change label name in staffing plan form

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

In customize form and doctype, there is not field name. you can check from your side also.

Please check it.

Field name or doctype name?

and the name field is auto generated?

@NCP

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);
    }
});
1 Like