Issue with Zurich Version
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours 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');
});
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Once in popup if user clicks on "cancel" then it enters into if loop
"if (!confirmed) {"
once it entered if loop, then always clear fieldname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Also, here popup also not showing...
It's working till Yokohoma but in zurich it's not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Ok so that is not happening right?
if Yes then i think instead of
if(!confirmed) can u give this a try if(confirmed == 'false')
because when cancel is pressed it returns a Boolean which is false.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
First popup it's self not coming
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
@Danish Bhairag2 any suggestions?

