Escalate button on the form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2022 10:52 AM
Hi All,
We have an Escalate button on the "cert_task" table. It is using "GlideDialogWindow" and rendering the dialog containing the UI page.
My requirement is to create a new field called "Escalated By" and populate it with the user name who pressed the "Escalate" button.
Thanks in advance.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2022 12:34 PM
Hello,
You'd add the field to that table and place it on the form as relevant.
Then add the appropriate query parms to the URL that you already have that shows the pop-up form.
Such as:
field_name=current.field_name
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2022 12:56 AM
Hi,
Out of the box I could see it's not calling any GlideDialogWindow and it's a completely server-side UI action
Did you or your team customize it?
you can send the logged in user sysId from the UI action to UI page and create a new reference field in UI page using <g:ui_reference> and populate that
this link has the solution
UI Page: How to pre-populate reference fields?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2022 01:20 AM
Hi Ankur,
Thanks for the reply.
Yes, my team has customized it. I am new to scripting. Could you please help me with the code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2022 06:44 AM
In that case I already shared the link with the solution
UI Page: How to pre-populate reference fields?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader