- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2015 05:33 AM
Hi,
I have written the below script to hide Email client button for some of my catalogs. However it is causing an issue on a "Manager Name" Reference field on form. End user getting "Script error encountered when changing this field - please contact your System Administrator" error after clicking on any Requested Item and able to see hidden fields because of the error.
Client script on onLoad():-
function onLoad() {
//Type appropriate comment here, and begin script below
var abc = g_form.getValue('approval');
var abc1 = g_form.getValue('u_catalog_type');
if((abc != 'approved') && (abc1 != 'Service Catalog')){
$('email_client_open').hide();
}
}
How can I fix the issue?
Thanks in Advance.
Regards,
Vimal
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2015 01:52 AM
Issue got fixed after making the Client script to Default view instead Global.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2015 12:48 AM
can you paste the script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2015 01:01 AM
This is the script.
function onLoad() {
//Type appropriate comment here, and begin script below
var abc = g_form.getValue('approval');
var abc1 = g_form.getValue('u_catalog_type');
if((abc != 'approved') && (abc1 != 'Service Catalog')){
var hideEmailIcon = document.getElementById('email_client_open');
hideEmailIcon.style.display='none';
}
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2015 01:04 AM
var hideEmailIcon = document.getElementById('email_client_open');
hideEmailIcon.style.display='none';
Can you just paste this and check to see how it goes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2015 01:04 AM
and your instance is on which release?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2015 01:11 AM
It is Eureka (glide-eureka-04-08-2014__patch6-hotfix2-10-27-2014)