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
pradeepreddypradeepreddy 

how to get the values

Hi 

 

when i select  record from lookup how to get prepapulate othere field values.

that means when i select account name form lookup i need to get the values of billing address,account type,ets fields get prepapulate.

 

here iam using custom controller and vf page 

 

Niket SFNiket SF

You need to add a action function. To get those values using SOQL.

 

Thanks 

Niks

Skype Name : niket.chandabe

Ranu JainRanu Jain

by lookup field you can only  get  id for that records...to get another info u hava to do soql query  on taht reocords.

pradeepreddypradeepreddy

Can please provide any code if  u have 

Ranu JainRanu Jain

   

  Id AccountId =   apexpages.currentpage().getparameters().get('id')l;
  Account acc =     [select name ,billing address,account type from Account where id =:AccountId  ];

 

 

now u can use this object  whereever u want .