Answers.Body: <p>So that you can actually do</p>
  
  <pre><code>   &lt;script&gt;
      jQuery(document).on('ready',function() {
        CRM.formatMoney('init', false, 'RM1,234.56');
        jQuery('tr[data-amount]').each(function(){
           var $this = jQuery(this);
           var amount = $this.data('amount');
           $this.children('td').eq(1).text(CRM.formatMoney(amount)); 
        });
      });
      &lt;/script&gt;
  </code></pre>
  
  <p>But, not accepting that as an answer.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-05-22T15:41:26.447Z
Answers.LastActivityDate: 2019-05-22T15:41:26.447Z
Answers.UserDisplayName: commonpike
Body: <p>In my installation, under admin/setting/localization, I have enabled multiple currencies. The default is $. The monetary amount display is <code>%c %a</code>.</p>
  
  <p>If I create a new contribution page in CiviCRM, I can choose a currency for that page. I've chosen €. Regardless of the setting, it displays $ in the contribution page edit form, but on the preview and live links in CiviCRM, it shows €.</p>
  
  <p>If I create a webform to use that contribution page, the contribution amount widget shows $. Also, in the webform output, the #wf-crm-billing-items table shows the amount in dollars, see below.</p>
  
  <p>I haven't tested, but I expect it will actually charge € from the webform. I also want it to display €.</p>
  
  <p>I have cleared all sort of caches. Is there a setting I am missing or is this a bug ?</p>
  
  <p><a href="https://i.sstatic.net/OASul.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/OASul.png" alt="enter image description here"></a></p>
  
  <hr>
  
  <p>PS - interesting little snippet I can do in the console on that page :</p>
  
  <pre><code>CRM.formatMoney(9.99)
  "$ 9.99"
  CRM.formatMoney('init', false, '€1,234.56');
  undefined
  CRM.formatMoney(9.99)
  "€9.99"
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-03-30T12:59:30.287Z
Comments.Text: .. or is there a way to disable the line items box ?
Comments.UserDisplayName: commonpike
Tags: <civicontribute><webform-civicrm><currency>
Title: Currency in webform billing items always dollars
ThreadText: # Currency in webform billing items always dollars
  
  (Asked by: username_0 on 2017-03-28)
  
  In my installation, under admin/setting/localization, I have enabled multiple currencies. The default is $. The monetary amount display is `%c %a`.
  
  If I create a new contribution page in CiviCRM, I can choose a currency for that page. I've chosen €. Regardless of the setting, it displays $ in the contribution page edit form, but on the preview and live links in CiviCRM, it shows €.
  
  If I create a webform to use that contribution page, the contribution amount widget shows $. Also, in the webform output, the #wf-crm-billing-items table shows the amount in dollars, see below.
  
  I haven't tested, but I expect it will actually charge € from the webform. I also want it to display €.
  
  I have cleared all sort of caches. Is there a setting I am missing or is this a bug ?
  
  [![enter image description here](https://i.sstatic.net/OASul.png)](https://i.sstatic.net/OASul.png)
  
  ---
  
  PS - interesting little snippet I can do in the console on that page :
  
  ```
  CRM.formatMoney(9.99)
  "$ 9.99"
  CRM.formatMoney('init', false, '€1,234.56');
  undefined
  CRM.formatMoney(9.99)
  "€9.99"
  
  ```
  
  **Tags:** civicontribute, webform-civicrm, currency
  
  > **Comments:**
  > **username_0**: .. or is there a way to disable the line items box ?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-05-22. Score: 1
  
  So that you can actually do
  
  ```
     <script>
      jQuery(document).on('ready',function() {
        CRM.formatMoney('init', false, 'RM1,234.56');
        jQuery('tr[data-amount]').each(function(){
           var $this = jQuery(this);
           var amount = $this.data('amount');
           $this.children('td').eq(1).text(CRM.formatMoney(amount)); 
        });
      });
      </script>
  
  ```
  
  But, not accepting that as an answer.
  
  
  ---
  
  