- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
Below onChange Client script is working in yokohoma but not in zurich, can someone please help me to understand on what is the issue?
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || !newValue)
return;
var proceed = confirm("Please confirm");
if (!proceed) {
var ga = new GlideAjax('ScriptIncludeName');
ga.addParam('sysparm_name', 'Function');
ga.addParam('sysparm_abc', g_form.getValue('fieldname'));
ga.getXML(function() {
g_form.setValue('fieldname', '');
g_form.reload();
g_form.showFieldMsg(fieldname, 'cleared.', 'error');
});
}
}
@Ankur Bawiskar @Its_Sagnic @Matthew_13
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
Hi @Sathwik1 ,
I just tried out in my PDI & its working fine. please make sure the client script UI type is set to All. Confirm & alert both are working. Please see the snip below.
Thanks,
Danish Bhairagdar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago - last edited a month ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
@Danish Bhairag2 thanks for all your efforts..
After checking it deeper again..I see the attachment itself not getting added to tha attachment variable..and I don't see any size limitations also... So will be there any other thing I've to check and confirm on why attachment is not getting added.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
Hi @Sathwik1 ,
Try uploading a normal excel file with some data or maybe any PNG or jog files. If still the same issue persist, try creating a new variable n check.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
Hi @Sathwik1 ,
If you are applying the onChange() client script on a reference variable ,in that case , can you try the same in other browser except chrome once .
Reason being "KB0715672 " says
"The 'confirm' doesn't work in onChange Client Script/Catalog Client Script created on a Reference filed/variable on Chrome Browser" .
