Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change name label in staffing plan form #2320

Open
1 task done
mohsinalimat opened this issue Oct 22, 2024 · 2 comments
Open
1 task done

Change name label in staffing plan form #2320

mohsinalimat opened this issue Oct 22, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@mohsinalimat
Copy link
Contributor

Information about bug

I want change Name label to Plan Name in staffing plan form.

I try with customise form and client script but not working.

image

In customize form and doctype, there is not field name.

image

Module

HR

Version

Latest

Installation method

manual install

Relevant log output / Stack trace / Full Error Message.

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@mohsinalimat mohsinalimat added the bug Something isn't working label Oct 22, 2024
@mohsinalimat
Copy link
Contributor Author

frappe.ui.form.on('Staffing Plan', {
    refresh: function(frm) {
        setTimeout(() => {
            frm.fields_dict['__newname'].df.label = 'Plan Name';
            frm.refresh_field('__newname');
        }, 50);
    }
});

Use this one and get solutions

@mohsinalimat
Copy link
Contributor Author

It should be change label via customize form also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant