Hide +New button in the Customer field

The other day it was necessary to hide the “+new” button that exists in the Customer field in the Opportunity/Quote, because that button when clicked opens the windows for a new Contact.

I tried to use some javascript code to change the option, instead of, open the Contact, opens the Account, but didn’t work.

So this is a way that can be used to hide that button:

document.getElementById("customerid_i").attributes[19].value = "account:true,contact:false";

Changing the “contact:true” to “contact:false”, does the work.

Hope this helps.


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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s