Title: Currency &#8211; thousands separator format
Last modified: December 2, 2017

---

# Currency – thousands separator format

 *  Resolved [blueblast](https://wordpress.org/support/users/blueblast/)
 * (@blueblast)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/currency-thousands-separator-format/)
 * How can I change the way the thousands separator commas appear? The default is
   2,000,000 but I’d like to show it according to Indian numbering system of 20,00,000

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/currency-thousands-separator-format/#post-9743434)
 * Hello [@blueblast](https://wordpress.org/support/users/blueblast/),
 * Our plugin does not implements the Indian number system, however, you can get
   the results with this numbers system easily in the calculated fields.
 * I will try to explain the process with a simple example:
 * Assuming your current equation is: `fieldname1+fieldname2`
    I’ll modify the equation
   to convert the result in a text, and apply the pattern:
 *     ```
       (function(){
       var result = fieldname1+fieldname2; 
       result = result.toString();
       return result.replace(/(\d)(?=(\d\d)+\d$)/g, "$1,");
       })()
       ```
   
 * and that’s all.
 * Please don’t forget indicate in the properties of the calculated field that your
   are using the comma symbol (,) as thousands separator.
 * Best regards.
 *  Thread Starter [blueblast](https://wordpress.org/support/users/blueblast/)
 * (@blueblast)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/currency-thousands-separator-format/#post-9743853)
 * Where should I enter this code?
 * Also, what about input fields that use currency type?
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/currency-thousands-separator-format/#post-9743907)
 * Hello [@blueblast](https://wordpress.org/support/users/blueblast/),
 * The equations are entered through the “Set equation” attributes in the properties
   of calculated fields ([https://cff.dwbooster.com/images/documentation/calculated-field-settings.png](https://cff.dwbooster.com/images/documentation/calculated-field-settings.png))
 * About the currency fields, my recommendation would be insert a “HTML Content”
   field with the following piece of code as its content:
 *     ```
       <script>
       jQuery(document).on('change','.cff-currency-field input', function(){
       var val = this.value; 
       val = val.replace(/[^\.\d]/g,'');
       this.value = '$'+val.replace(/(\d)(?=(\d\d)+\d$)/g, "$1,");
       });
       </script>
       ```
   
 * and that’s all.
    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Currency – thousands separator format’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form - AI Form Builder for WordPress - Contact, Payment, Quote, Quiz & More](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/currency-thousands-separator-format/#post-9743907)
 * Status: resolved