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

Can I access the symbol of a currency field?

Topic Labels: Scripting extentions
461 2
Showing results for 
Search instead for 
Did you mean: 

I’ve been trying to access the symbol of a currency field. However with no luck as my output returns undefined.
I’ve been looking in the API reference and it seems the the field has who properties, symbol and precision. But how do I access the symbol value?

const table = base.getTable('report');
let price = table.getField('price').symbol
2 Replies 2

For any fields that have configuration options that are made available through the API, you access them through the options object, which is an attribute of the field:

CleanShot 2020-03-26 at 08.32.58