
- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on ‎12-20-2021 10:33 PM
Case#1 : I would like to display only Incident Number, Caller, Short Description when I click on Preview Icon from Incident List view.
- Go to Incident Table Definition
- Click on "Layout Form" link under Related Links
- Ciick on "View name" and select "New" to create the View
- Provide the name as "sys_popup" (It must be exactly the same name with Lower Case)
- Select Number, Caller & Short Description fields from Slush bucket and put that in Right Section.
- Save it and you will be able to see like this
Case#2: I would like to show Number, Caller, Short Description for all Users except "Database" Assignment Group Members. Database Group Members needs to see Number, Caller, Short Description, Description fields as well.
- Go to Incident Table Definition
- Click on "Layout Form" link under Related Links
- Ciick on "View name" and select "New" to create the View
- Provide the name as "DBTeam" and configure all the fields that you want (This is for Form View i.e. what you would like to see when you open a incident record)
- Save it and again click on "Layout Form" Link under Related Links
- Ciick on "View name" and select "New" to create the View
- Provide the name as "sys_popup,dbteam"
- Select Number, Caller, Short Description & Description fields from Slush bucket and put that in Right Section
- Save it
- Go to "System UI" => "View Rules" and create a new record. Write your script like this and save the record.
- Impersonate with one of the member from "Database" Group and you will be able to see the details like this when you click on "Preview / Information" Icon
- The same information Icon looks like this for other users
Case#3: I would like to Hide the Preview/Information Icon
- First choose which Table you wanted to apply the hiding of Preview Icon. Here I have taken Incident Table as an example.
- Create UI Script as below (Please observe the code and its self explanatory)
-
(function() { addAfterPageLoadedEvent(function() { //I would like to hide Preview Icon for Incident Table. You may add ( or || ) any table of your choice in this (or) condition. if ((window.location.href.indexOf('incident_list') != -1)) { //If Incident, then use "#incident_table" (just add _table to the table name) $j('#incident_table > tbody > tr > td > a[class="btn btn-icon table-btn-lg icon-info list_popup"').each(function() { $j(this).css("display", "none"); }); } }); })();
- Save it and open the Incidents in List view. You will be able to see like this
Please mark it as helpful and do a bookmark if it helps you. Also, do a comment if anything required.
Thanks,
Narsing
- 6,348 Views
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Is there anyway to make the sys_popup view form be editable?
We have one requirement to make the form editable instead of open record button
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
I Have a report added to a dashboard on portal, customer don't want to see this i icon on this report in the list view, how can I remove it?
under window.location.href.indexof I have given dashboard link containing report sys_id, but still i icon is visible.

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Recently came across one more case. Here you go.
Case#4: I would like to hide the preview icon on the Related List of a form
- Right click on the Preview Icon where you would like to hide on the Related List like this. Here I took Task SLA related list on the Incident form.
- In this case, I would like to Hide the Task SLA Related List Preview icon. So just took the HTML Table ID of it and my id is "incident.task_sla.task_table".
Now, create a UI Script like this
Note: Cell[1] will be always a preview Icon. So you can have a hardcoded one.
(function() {
addAfterPageLoadedEvent(function() {
if ((window.location.href.indexOf('incident.do') != -1)) {
var table = document.getElementById("incident.task_sla.task_table");
for (var i = 0; i < table.rows.length; i++) {
table.rows[i].cells[1].style.display = "none";
}
}
});
})();
You are done and the final result is like this
Before#
After#
Thanks,
Narsing
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hello,
Thanks for your reply, will check this solution.
Best Regards,
Pooja
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Will this work in CSM View ?

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
It works independent of the view as it is taking a part of the url into consideration
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
I have implemented case #2 on the sys_user table for a HR view.
It does not work.

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Looks like you are combining both 1 and 2.
Can you please create a new view with some other name apart form sys_popup and change the view on the list view to that name and try
Thanks,
Narsing