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
SuAkSuAk 

autopopulate Account name lookup field in Customvisualforce page

Hi - I have created a custom visualforce page Account Location. I have overridden the new stad button of Account location with my visualforce page. 
When I go to Account -->Related List-->Account Location. The Account name is not populated automatically in the Account location visualforce page.

<apex:inputField value="{!CustomObject__AccountId__c}"/>

How to populate autopopulate Account name?

Thanks!