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

Auto-populate field from Account object on case Object VF page



My requirement is  to auto-populate a field from "Account" Object on "Case" Object VisualForce Page..

For eg: {"!Case.Account.bill_date__c"}


where bill_date__c is the field which is present only in Account Object but not in Case object.

Please help me i this case how to render the respective field.










    Case and Account Objects are related with a look up.. i.e., Case has a look up to Account Name.


On what event are you planning to populate this field? Any button click / page redirection?



When i click on send button in one page, that page is redirected to the second page..on which the auto-populated fields are present.

  1. Two VF Pages
  2. One Controller
  3. Command button on first page that would redirect to the second page
  4. <apex:page action={!method}>
  5. Call one of the getter methods in your controller from the PageReferece Method() method.
  6. Write your query in the getter method.

Your're done!