- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2020 12:41 AM
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
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2020 03:38 AM
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
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
11-11-2020 01:28 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2020 01:34 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2020 01:48 AM
Yes now it is working fine
Thank you sooo much for helping me with this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2020 02:02 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2020 03:20 AM
Hi
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..