- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-17-2020 01:25 AM
Hi All,
I want to modify My Request widget to add Created and Updated date along with state and number column name.
How can i add column in the script and the date format need to change ad actual date instead of days ago.
Thanks,
Neethu
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-18-2020 12:28 AM
Hi Neethu,
I have done the required changes in the HTML part of my new clones widget and i have attached it in this reply.
You need to do little changes in the server script also for the cloned widget as follows:
Update server side script with the two lines after line number 153:
// new code sart
record.number=gr.getValue('number');
record.created_on=gr.getValue('sys_created_on');
// new code ends
After doing the changes you need to replace this widget with the My Requests widget in your portal page Requests.
as shown below:
Thanks,
Mohit Kaushik
Mohit Kaushik
ServiceNow MVP (2023-2025)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-18-2020 04:35 AM
I am glad it worked for you. It will be great if you can mark my answer helpful also.
Thanks,
Mohit Kaushik
Mohit Kaushik
ServiceNow MVP (2023-2025)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-17-2020 01:59 AM
Hi,
In server side code there's an array with al the field that you want to display in the widget. Check this thread below:
If it was helpful, please give positive feedback.
Thanks,
ā Community Rising Star 22, 23 & 24 ā
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-17-2020 02:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-11-2022 07:33 AM
Have you tried modifying the My Request Filters?
Service Catalog >My Request Filter> and filter by Service Portal to see the filters. From here you can adjust what fields are displayed in the "My Requests" widget on the portal.
Hope this helps.