Auto populate fields on pop-up window

NAIDILE S
Tera Contributor

Hi All!

Here on the pop-up based on CI i need to fill the other service, application service and service offering fields and save it on incident form.
How do i do that ? can anyone help me with this.
Thank you

NAIDILES_0-1694597781822.png

 

1 ACCEPTED SOLUTION

@NAIDILE S 

you want to auto-populate then make the fields readonly on UI page.

if you want to auto-populate and also allow user to select other value then check this link how to set reference field on UI page when UI page loads

check this link and enhance as per your requirement

Store value in reference field of ui page using client script 
If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

12 REPLIES 12

Ankur Bawiskar
Tera Patron
Tera Patron

@NAIDILE S 

Is this pop-up out of the box?

I think it's custom and an UI page.

You might have to use onChange event on that HTML field and use GlideAjax to fetch the value and then set it.

Why not do this?

1) create a view on incident table with the limited fields as shown in screenshot

2) when user clicks the button show that view for new record and user can submit directly. there it's normal form and you can use normal onChange client script and use GlideAjax to fetch and set the value.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Hi @Ankur Bawiskar 
This pop-up is OOTB , but i have added 4 fields on it.

Creating of new view on incident, this will not support my requirement

@NAIDILE S 

so is it an UI page?

so did you try creating onChange on that reference field?

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

@Ankur Bawiskar 
Correct its an UI page

as UI page is new to me , i tried different methods.. did not get it