You need to sign in to do that
Don't have an account?
ShuchiM
Lookup field record Id
Hi all
I have created a lookup field in a repeat block. I want to get the value of the lookup in jQuey. When i try to do that, I get the value of the record instead of the Id. E.g. if Bill_To__c is my lookup field for account, I get "Test Account" back and not the id of the record in the value. How do i get the id of the record back in jquery?
Please advice.
Regards
Shuchi
I finally got it working. There is a hidden field that carries the values for lookup field ids. Checked the element structure in Chrome javascript console.
All Answers
You should be able to use Bill_To__r.Id to access the Id.
~ Clint
I finally got it working. There is a hidden field that carries the values for lookup field ids. Checked the element structure in Chrome javascript console.