Output printing as [object object] .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2022 05:50 AM
script include : i want 3 values and i am getting 3 logs , but in client script i am getting error , can someone please suggest
client script :
function mycallback(answer) {
answer = JSON.parse(response.responseXML.documentElement.getAttribute("answer"));
//answer = JSON.parse(result);
var adgroup = answer.var1;
var url = answer.var2;
var orgsuffix = answer.var3;
alert('two');
g_form.setValue('ad_groupp', adgroup);
g_form.setValue('U_URL', url);
g_form.setValue('org_suffix', orgsuffix);
alert("ad grp is " + adgroup);
alert("url is " + url);
alert("os is " + orgsuffix);
}
return false;
}
- Labels:
-
Multiple Versions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2022 08:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2022 08:25 AM
are the fields getting set correctly?
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
02-01-2022 08:45 AM
Answer is getting in alert ,and it is setting on form level but not showing on RITM variable editor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2022 08:55 AM
can you put
alert("response is " + response); //as the first line in the call back and paste the result as string.
Vinod Kumar Kachineni
Community Rising Star 2022
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2022 05:18 AM
Hi
FYI, the variables are hidden on form level by using UI policy
Please suggest