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
mdinatalemdinatale 

Visualforce page Get id not name from field

I created a visual forcepage that has a master-detail record. When i select the magnifying glass and choose a value it puts in the name into the field, is ther a way to get the id as well? I have some javascript doing and field value but it returns the name, i need the id. Thanks in advance

jd123jd123

i think u can check with

you have master field in that object try with this  

master_Field__r.id

hope fully it will work other wise lety me know??

 

 

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