Skip to main content

How to grab other fields using record.get() in javascript

  • July 6, 2018
  • 1 reply
  • 4 views

I have a base that I can retrieve records from using the API from Javascript code, but I’d like to get the value for other fields besides just “Location”. Using “console.log('Retrieved: ', record.get(‘Location’));”, how do I modify this line to include in the output the field values for a field called “Size” in addition to the “Location” field? I tried separating multiple fields with a comma, but that didn’t work.

  • Inspiring
  • July 8, 2018

Use record.fields - this is an object that contains all of the fields.

So record.fields['Size'] would get the Size field.


Reply