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
test777test777 

Urgent:placing record id in the name field after record is inserted.

Hi all,

   i want to insert the record through vf page. and in that page didnt display account name.But in the back end field of account name i want to store the inserted account id as value in that account name field.Any one can you please help me.

 

 

Thanks in advance.

Best Answer chosen by Admin (Salesforce Developers) 
Navatar_DbSupNavatar_DbSup

Hi,

 

If you are referencing the lookup field on VF page the parent object will be referred by Id always. If you want Account name Instead of Account Id please use the Account name field basis on the Account id.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

All Answers

Navatar_DbSupNavatar_DbSup

Hi,

 

If you are referencing the lookup field on VF page the parent object will be referred by Id always. If you want Account name Instead of Account Id please use the Account name field basis on the Account id.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

This was selected as the best answer
PriyasoftPriyasoft
Hi, Account Name is a required field on Account object. So the only way to insert Account Id into Account Name is, after insertion you just update the Account Name with the Account Id in your class.