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
Matthew Smith 42Matthew Smith 42 

New Contact for Lookup Page missing Account field

Hi all,

Within the Lookup page, when creating a new contact, there is no place to enter in the accout. See attached.

I would like to either add that field or if someone can send me a quick visual force page that has that field that would be great.

Lookup page adding new contact
Thanks in advance!
 
Pranav ChitransPranav Chitrans
public with sharing class MyCustomLookupController {

  public Contact contact {get;set;}

  public MyCustomLookupController() {
    contact = new Contact();
  }

}
 
<apex:inputField id="Account" value="{!contact.AccountId}"/>

 
Matthew Smith 42Matthew Smith 42
Hi Pranav

Thanks for the rapid response.

As I am not an expert at this, I just need a bit more clarification.

1-9, I am assuming that is a VisualForce page? 

1, Just not sure if this is a part of that same page.

Sorry for the ignorance!
Matthew Smith 42Matthew Smith 42
It looks like it is a Apec Class ... sorry!  Still need some help though :-)
Mehul MakwanaMehul Makwana
Hi Matthew Smith,

There is no need to select Account while creating Contact using above mention Lookup Screen, Because you already open this lookup screen from one of Accout record, what ever Contact you create here using lookup it automatically creates under the same account.

If you want to create contact under different account you can follow bellow steps:

1) Goto Account Tab.
2) Select Account under that you want to create Contact.
3) (Scroll down you will see Contact related list) 
4) Click "New" under contact related list to create contact.
5) Provide Appropriate details.

Click Save.
Contact Created.

Let me know if it works for you.
Matthew Smith 42Matthew Smith 42
This is for my Customer service team that lives our of the Case object.  We are trying to eliminate have to create the contact first then attaching it to the case.  They want to take away one less step and just add the Account on that page.
Mehul MakwanaMehul Makwana
Can you explain your requirement in detail.
Matthew Smith 42Matthew Smith 42
End goal is to be able to add the account to the contact from the contact Lookup page when clicking the new button.

Problem:
When a customer care agent creates a new case, does a lookup and the contact does not exist, they click the "new" button in that screen.  From there, they want to be able to add the account instead of having to go into that contact after the fact and then add the account.

Those extra couple of clicks adds up in their day making them less efficient.
Sarah McCaig 11Sarah McCaig 11
Was a solution to Matthew Smith 42's problem ever found?
I have the same query that creating a new contact at the lookup on a case is required.