The CreatorCon Call for Content is officially open! Get started here.

Hide "Save" from Sys_popup in Portal

Ariel Aharon
Giga Guru

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

4 REPLIES 4

RaghavSh
Kilo Patron

@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.


Raghav
MVP 2023
LinkedIn

@Ariel Aharon were you able to get this working?


Raghav
MVP 2023
LinkedIn

prerna_sh
Giga Sage
Giga Sage

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

 

Ankur Bawiskar
Tera Patron
Tera Patron

@Ariel Aharon 

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! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader