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
RudraRudra 

Account name autopopulation on selection of contact name in case edit/new page

Hi,

I see that the account name gets auto-populated when we select the contact name in the case new/edit page, i.e. when we select a particular contact name the account name to which that contact belongs to get populated in the account lookup field on it's own in the case object.
But when I use standard controller and create a visualforce page the account name does not get auto-populated.
Please let me know why this is happening even when I am using a standard controller.

Please also suggest some work around.




Steps to reproduce :
1) Go to case tab , click on new button to create new case.
2) In the new case page edit, select contact .
3) see the respective account name for that contact belongs to gets populated.
4) Create a Visual force page with standard controller and display the fields using inputfield annotation.
5) Select a Conatct, see the account name does not get populated.
ShashForceShashForce
Hi,

I tried the same and it worked fine in my developer org. Can you post your code so that I can have a look?

Thanks,
Shashank