Service Portal: Specify which View displays when clicking a reference field's "info" icon?

chch
Kilo Contributor

Greetings,

This is my first post in the community!

My question pertains to the Service Portal. I've tried searching the community for an answer but haven't been able to find anything that works.

In the Service Portal, when clicking the "i" icon next to a reference field, a widget opens to display record information.

This currently uses the default view and I haven't been able to find where to specify a different view, for example, the Self Service view.

I've already tried adding a "sys_popup" view using the Form Layout editor, which DOES update the popup in the old Service Catalog but has no effect in the Service Portal.

find_real_file.png

find_real_file.png

No change in Service Portal:

find_real_file.png

Any help would be greatly appreciated!

Best,

Chris

16 REPLIES 16

Hi Paul,



I added the script line but no luck .


The script in ACL looks like:


if(gs.getUserID() != current.sys_id)


answer = true;




else


answer = false;




I could still edit on Service Portal but not in native UI.


Regards,


Zabeeulla.


The SN Nerd
Giga Sage
Giga Sage

You might need to also create the ACL for ".*"


Is the save button there?



I used this technique on my instance and it works perfectly.



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

Hi Paul,



Yes there is a save button and related lists are present as well.


could you please suggest me how would i remove these and make the view readonly to users




Regards,


Zabeeulla.


Make sure you are impersonating an End User. Admin will always be able to edit the record (as long as admin override is ticked).
I recommend always having test persona accounts on hand.




Once the ACL's are configured, all fields will become read-only.



The form pulls the default view, so removing the related lists (or adding roles via list control) will get rid of those too.
Nothing required here other than ACLs:




find_real_file.png



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

HI Paul,



So an ACL on sys_user.* would work?


how would i get that view on portal if i create any ?Is there any widget that i need to edit.




Regards,


Zabeeulla.