Removing Quotes, Orders and Invoices from the Contact Record with out Security Role Changes

So to use this we are going to open the Contact form under customizations. We are then going to click Form Properties and Select the OnLoad event.

We are then going to paste the following Jscript into the Window:

// This code will remove the Quotes / Order and Invoice items from the nav
// bar on the Contact form.

var navQuotes;
var navOrders;
var navInvoices;

navQuotes = document.all.navQuotes;
navOrders = document.all.navOrders;
navInvoices = document.all.navInvoices;

if (navInvoices != null) { navInvoices.style.display = “none”; }
if (navOrders != null) { navOrders.style.display = “none”; }
if (navQuotes != null) { navQuotes.style.display = “none”;}

else {
// error handling here – Q/O/I wasn’t found
// alert(“No Quotes, Orders or Invoices”);
}

Then save your customizations, and publish your changes.

And here is the code to remove the Service -> Cases and Contracts

// This code will remove the Service Section, Cases and
// Contracts items from the nav bar on the Entity.

var navCases;
var navContracts;
var navService;

navCases = document.all.navService;
navContracts = document.all.navContracts;
navService = document.all._NA_CS;

if (navCases != null) {navCases.style.display = “none”;}
if (navContracts != null) {navContracts.style.display = “none”;}
if (navService != null) {navService.style.display = “none”;}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: