function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ChrisMcLChrisMcL 

Overwrite New button on Contact Lookup screen?

Is there a way to override the New button on the Contact Lookup search screen? I am prefilling the Account name on the Contact Edit screen by overwritting the New button (which works for the main Contact edit screen). But the Account name field is not visible via the New button on the screen Contact Lookup Search. Any ideas?
 
Below is the code I succesfully prefill the account field on the main Contact edit screen.
Code:
<html>
<head>
<script src="/soap/ajax/9.0/connection.js"></script>
<script>
function init()
{

var ssAccount = "{!Account.Name}";

if (ssAccount.length >0)
{
window.parent.location.href="{! URLFOR( $Action.Contact.NewContact , null, [con4= Account.Name ], true)}"; 
}
else
{
window.parent.location.href="{! URLFOR( $Action.Contact.NewContact , null, [con4= "Citizen"], true)}"; 
}
}

</script>
</head>
<body onload="init()">
<p>&nbsp;</p>
</body>
</html>

 
Marisol ThomerMarisol Thomer

Chris, I realize you asked this question over two years ago, but I'm wondering if you ever found an answer. 

I'm now trying to do the same thing customize the page that appears when you click the New button on the screen Contact Lookup Search.

Any help you can provide would be a lifesaver!  

Thanks in advance,

 

Marisol Thomer

Outreach Director

Progressive States Network

mthomer@progressivestates.org

212-680-3116

New York, NY