web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Updating currency symbols on money fields with supported JavaScript code?

(0) ShareShare
ReportReport
Posted on by

Hi All,

I need to set the currency in an opportunity to the associated account's currency.  I am able to update the currency field (transactioncurrencyid) with JavaScript code, but it is not updating the currency symbols on all of the money fields in the form.  Is there supported JavaScript code that will allow me to do this?

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Ben John Profile Picture
    559 on at
    RE: Updating currency symbols on money fields with supported JavaScript code?

    Hi Benjamin,

    try this after your update: Xrm.Page.getAttribute("transactioncurrencyid").fireOnChange();

    Regards,

    Ben

  • Community Member Profile Picture
    on at
    RE: Updating currency symbols on money fields with supported JavaScript code?

    Hi Ben,

    Thank you for your suggestion.  I just tried your suggestion and it still did not update the currency symbols.

  • Suggested answer
    prt33k Profile Picture
    6,907 on at
    RE: Updating currency symbols on money fields with supported JavaScript code?

    This is a known behavior - you can trigger a form save after changing currency. This will change the currency sign - but will commit the change as well.

    use Xrm.Page.data.entity.save();

    Thanks,

    PS

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    6,804 on at
    RE: Updating currency symbols on money fields with supported JavaScript code?

    Hi Ben,

    You need to use below to asynchronously refresh and save the data which changes the symbol to the correct one.

    Xrm.Page.data.refresh(true);

    dyn365apps.com/.../how-to-change-currency-and-currency-symbol-using-javascript

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans