How to populate field value in pop up box through ui action

Aayushi tandon
Tera Contributor

Hi all,

 

 there is one UI action(request approval) in my record, once i clicked on that UI action, one pop up box should display, where i get resource plan start date field value , where i  display message that this is the resource plan start date, do you want to procced?, an there will be the  button confirm and cancel.

 

Can you please help how to write this logic , i have created ui action with method GlideDialogWindow, but  i don't know how to fetch that record field value  and show in that pop up box through UI page. Please let me know.

 

Thanks

2 REPLIES 2

Voona Rohila
Kilo Patron
Kilo Patron

Hi @Aayushi tandon 

Please share the code you have configured in the ui action.


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

Hi,

 

this is my ui action code

 

function NewDialogBox(){
var dialog = new GlideDialogWindow('request_confirmation');
  dialog.setTitle('Confirmation Dialog');
  dialog.setPreference('sysID', g_form.getUniqueValue());
  dialog.setPreference('number', g_form.getValue('number'));
  dialog.render();
 
 
can you please help me in the ui page code, how to fetch resource plan number in pop up
 
Thanks
Aayushi