How to disable "Open Record" in popup view from related list view?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2022 04:46 AM
Hello everybody,
I have been trying to get the open record button to not show when a preview is open from the (i) icon in the related list view but all I have found and tried has not worked. I am working on a scopped application to be more specific.
I have tried the system properties glide.sc.variable.reference.clickthrough and others that have the clickthrough as well as the client script:
function onLoad() {
if (g_scratchpad.extGrp) {
jQuery("button.btn-ref.icon.icon-info").click(function() {
setTimeout(function() {jQuery("a.pop-over-button.pull-right").remove();}, 500);
setTimeout(function() {jQuery("a.pop-over-button.pull-right").remove();}, 1000);
setTimeout(function() {jQuery("div.sc_popup_header").find('a').remove();}, 500);
setTimeout(function() {jQuery("div.sc_popup_header").find('a').remove();}, 1000);
});
}
}
But cannot make it to work. If anyone has found a way to disable that Open record button will greatly appreciate if you can share, how were you able to do it.
Thanks.