Modifying Preview Form in Service Portal

BCM-Michaelm
Tera Contributor

We are trying to figure out how/where to modify the "Preview" screen on reference fields in the Service Portal. When you hover over the "i" it pops up a preview of the current record but there are issues with the form that is displayed.

1. It has multiple Save buttons

2. The form doesn't appear to use ACLs, our users are allowed to make changes to fields displayed even without rights.

We'd like to know:

1. Where is this form modified in the portal?

2. How do we remove the additional "Save" ui actions?

Capture2.JPG

1 ACCEPTED SOLUTION

BCM-Michaelm
Tera Contributor

I actually found out this is a known issue.   Service Now has a documented problem PRM676928 - See Below:



Solution Proposed:
I looked into the details of the issue and noticed that there is a known problem for this issue-PRB676928 and I have attached it here in the incident for your reference.
This Problem was closed as working by design. The reason is, that in the service portal, when you click on the reference icon, a complete functional form is opened, unlike what happens on the backend (where we use the popup view). Since the form is complete functional, we cannot use the popup view, and the default view is used.

However, there are enhancement requests that are created for supporting the popup view in service portal.

There is a community article that talka about hiding/disabling the reference icon.
https://community.servicenow.com/thread/227140
In the navigator type: Service Portal>pages>
then search ID=bcm_cat_item
then in the Page Specific CSS
You would need to add something like this:
.add-on > button.lookup {
display:none;
}
.field-has-reference .reference {
display: block;
}


View solution in original post

4 REPLIES 4

Surendra Raika1
Kilo Guru

Where is this on Portal?


BCM-Michaelm
Tera Contributor

I actually found out this is a known issue.   Service Now has a documented problem PRM676928 - See Below:



Solution Proposed:
I looked into the details of the issue and noticed that there is a known problem for this issue-PRB676928 and I have attached it here in the incident for your reference.
This Problem was closed as working by design. The reason is, that in the service portal, when you click on the reference icon, a complete functional form is opened, unlike what happens on the backend (where we use the popup view). Since the form is complete functional, we cannot use the popup view, and the default view is used.

However, there are enhancement requests that are created for supporting the popup view in service portal.

There is a community article that talka about hiding/disabling the reference icon.
https://community.servicenow.com/thread/227140
In the navigator type: Service Portal>pages>
then search ID=bcm_cat_item
then in the Page Specific CSS
You would need to add something like this:
.add-on > button.lookup {
display:none;
}
.field-has-reference .reference {
display: block;
}


Karlo
Tera Contributor

Hi

I'm only want to hide the related list, related links and a few of fields

What i need to do, for customize the preview form?

 

For example, i want to hide the contact number, alternate email, etc

find_real_file.png

As explained by BCM-Michaelm the view being used in Service Portal reference fields are default view. So if you make change to the default view by using client script or by just removing these two fields, This should solve your problem.

 

Please note : This question has already been marked as solved, It will be good if you open a new thread for this query.