Escalate button on the form

Nani6
Mega Guru

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.

@Ankur Bawiskar @Pradeep Sharma @asifnoor @Brad Tilton @Kalaiarasan Pushpanathan @Mark Stanger @Chuck Tomasi  Any help would be greatly appreciable.

Thanks in advance.

 

4 REPLIES 4

Allen Andreas
Administrator
Administrator

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!

Ankur Bawiskar
Tera Patron
Tera Patron

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?

find_real_file.png

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

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.

 

@Nani 

In that case I already shared the link with the solution

UI Page: How to pre-populate reference fields?

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader