Get a field value by ID

Last updated Oct 16 2019

window.ftGetValueByID(fieldID, isAdvanced);
This JS function will allow you to get the value of a specific field based on its ID.

window.ftGetValueByID('fld5');
Where fld5 is the field id 
Learn how to find the field Id

If you have a field like radio/dropdown/checkbox and you want to retrieve the advanced value of the selected option
Then use
window.ftGetValueByID('fld5', true);

Watch the video





CommentsLogin Required
  • Michael Kelly08/17/2020 07:19
    Fair enough. I was hoping to avoid an extra GET as all I need is the text value already used by the lookup. Thanks Benny.
  • Saurum Sergey08/17/2020 05:37
    With lookup, you do extra GET to grab any related field for that record.
  • Michael Kelly08/17/2020 05:36
    For complex fields such as the Salesforce Lookup how do I obtain the text value? window.ftGetValueByID('fld5', true); window.ftGetValueByID('fld5-text', true); None of these seem to work
Didn’t find what you were looking for?
Try the following for assistance or Use the Search box.