How to create a popup on incident form for a service field

srilakshmi9
Mega Contributor

Hello,

we have one record producer named as "Report an Issue" , Upon selection of "category" in "report an issue" record producer pop up is coming to display that you are raising issue for "name of the service" service and have a user clickable option "Ok".

Could you please help me on this

1 ACCEPTED SOLUTION

Hi,

there is another checkbox on Catalog Client Script:

Applies on Target Record

If you select this checkbox then it would run on the form as well

find_real_file.png

Regards
Ankur

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

View solution in original post

38 REPLIES 38

Hi Ankur,

sorry for the delay and i will explain you where it should be appear exactly just i have talk with user 

as per the user the confirmation box should be appear when ever the user is selecting the category then the confirmation box should be visible in the portal side only .

So i have done changes in the catalog client script.

find_real_file.png

 

Hi,

So everything is working fine; just that you are getting sys_id but you want name

use this; use proper variable name

var service = g_form.getDisplayValue('business_service');

Regards
Ankur

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

Yes now it is working fine 

Thank you sooo much for helping me with this

You are welcome.

Happy learning.

Do check my blog which has the way how to get display value on native and portal for catalog item and record producer

Do mark it helpful and also bookmark it

Get Display value of reference variable Service Catalog

Regards
Ankur

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

Hi @Ankur Bawiskar 

after clicking on cancel from the confirmation box I'm able to submit the request . That should not happen 

 i have written the catalog client script for this requirement onsubmit 

 

function onSubmit() {

if(g_form.getValue('u_service') == 'true' ){
return true;
}
else{
return submit;
}
}

 

Can you please help me with this..