Hide "Save" from Sys_popup in Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sunday
We have a reference field of Users, when clicking on the ( i ) button, the popup shows and users can edit their porfile from there.
We wouldn't like to restrict (ACL) fields but disable saving from Popup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sunday
@Ariel Aharon You can write a client script/ui policy on "Sys_popup" view to make all fields readonly as you dont want to restrict from ACLs.
Create client script or UI policy on user table and uncheck "global" , it will give you an option to add view, add "sys_pop" in view field.
Also select the UI type of your client script as "service portal/mobile" so that native view remains unaffected.
This can also be tried through css by hiding the save button but for that you need to specify the exact page else it may impact other popups as well.
Please mark the answer correct/helpful accordingly.
Please mark the answer correct/helpful accordingly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
@Ariel Aharon were you able to get this working?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sunday
Hi @Ariel Aharon
Please check this, this might be helpful:
https://www.servicenow.com/community/employee-center-forum/hide-save-button-of-reference-fields-in-p...
-------------------------------------------------------------------------------------------------------------------------------------------
If my response solves your query, please marked helpful by selecting accept as Solution and Helpful. Let me know if anything else is required.
Thanks,
Prerna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
you can't create client script or UI policy which runs on sys_popup view
You can create a UI action visibility on the newly overridden Update button
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader