Can I access the symbol of a currency field?

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
output.inspect(price)
output.inspect(price[symbol])

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:

3 Likes

Thank you @Jeremy_Oglesby.

1 Like