Help

Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

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

Topic Labels: API
2610 1
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

1 Reply 1

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

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