Hi, how to hide department field from Employee form in Customize Form screen?
I am an admin user. I don’t see any such option. Can you provide specific path?
Below are version details:
ERPNext: v14.56.0 (version-14)
Frappe Framework: v14.60.0 (version-14)
Frappe HR: v16.0.0-dev (develop)
Search “Customise Form” in awesome bar, then select form type in “Enter Form Type” under details tab.
I dont see Hidden option for any field in Customize Form
To hide the Department field from the Employee form using the Customize Form screen, follow these steps:
-
Go to Customize Form:
- Navigate to ERPNext / Frappe Framework > Customization > Form Customization.
- Search for the Employee form.
-
Locate the Department Field:
- In the Customize Form screen, look for the Department field in the list.
-
Set the Field as Hidden:
- Find the Hidden checkbox and enable it.
- Alternatively, set the Perm Level to restrict visibility based on user roles.
-
Save and Reload:
- Click Save and refresh the page (Ctrl + Shift + R) for changes to take effect.
If you need to conditionally hide the field based on a user role or other criteria, you can use Custom Scripts. Let me know if you need help with that!
@janhardin01 @HUMENTH @Abdeali
Look at the attached full screenshot. I don’t see any hidden option when selected any field.
Alternately, what should be the perm level as in below screenshot?
When you click edit on any fields you’ll be able to see the “hidden” option, like the one you shared in your screenshot.
As for the perm level, it is to allow access to that field (read & write) only to certain user roles via role permission manager.
I do not see any such option when I opened field in edit mode. Kindly point out in the below screenshot.
In the permissions section below the perm level field there is a hidden check box (which is enabled in this screenshot, so you can’t miss it.)
But, still I can see Department field in Employee Overview screen. Clearly, it is not hiding.
That is indeed odd, as it should be hidden. Unless there is some property setter for the display depends on taking precedence.
Could you try a
bench migrate
Once and see if the field still has the hidden check box.
Also if the site is not in developer mode then you won’t be able to edit any of these core fields. (Youd have to give property setters.)