Skip to main content

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:


Thank you @Jeremy_Oglesby.


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:


@Jeremy_Oglesby do you know if it is also possible to update the symbol with a script?


@Jeremy_Oglesby do you know if it is also possible to update the symbol with a script?


@Jeremy_Oglesby Its alright I figured it out already. doing the following helped:

await field.updateOptionsAsync( { precision: 2, symbol: "£", } )