- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Mar 26, 2020 05:33 AM
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])

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Mar 26, 2020 08:34 AM
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
:
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Mar 27, 2020 08:51 AM
Thank you @Jeremy_Oglesby.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Feb 16, 2023 07:25 PM
@Jeremy_Oglesby do you know if it is also possible to update the symbol with a script?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Feb 16, 2023 08:43 PM
@Jeremy_Oglesby Its alright I figured it out already. doing the following helped:
await field.updateOptionsAsync(
{
precision: 2,
symbol: "£",
}
)
