How to get currency type in FX currency field
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024 05:44 AM - edited 02-27-2024 05:46 AM
I have a FX currency type field and I want to get the currency type of the field. For example, there its USD.
Tried with getCurrencyCode()/getReferenceCurrencyCode() but it does not work.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024 05:53 AM
Hi @Shusovit Dutta ,
Can you share your code which you have tried, is it client side you want to get the currency code or server side?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024 06:06 AM - edited 02-27-2024 06:12 AM
need for server side.
// var currencyField = current.<field_name>;
// var currencyType = currencyField.getCurrencyCode();
// gs.addInfoMessage(currencyType);