Title: Can&#039;t make this simple function work
Last modified: August 22, 2016

---

# Can't make this simple function work

 *  Resolved [raptor_classic](https://wordpress.org/support/users/raptor_classic/)
 * (@raptor_classic)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/cant-make-this-simple-function-work/)
 * Hi,
    I’m using Calculated Fields Form Ver. 1.0.16 What’s wrong with this equation?(
   function(){ if(fieldname1<=650000) return 0; return fieldname14; })()
 * when fieldname1 less than 650000 then it works but when greater than that, it
   doesn’t work.
 * Help me please
 * [https://wordpress.org/plugins/calculated-fields-form/](https://wordpress.org/plugins/calculated-fields-form/)

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/cant-make-this-simple-function-work/#post-5863986)
 * Hi,
 * I’ve tested the equation from my side and it is working fine, could you send 
   me the URL to the webpage to check the form and not only the equation, please?
 * Best regards.
 *  Thread Starter [raptor_classic](https://wordpress.org/support/users/raptor_classic/)
 * (@raptor_classic)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/cant-make-this-simple-function-work/#post-5864021)
 * Hi,
    Here is the url [http://www.raptorclassic.com/?page_id=6](http://www.raptorclassic.com/?page_id=6)
   Thanks in advance
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/cant-make-this-simple-function-work/#post-5864037)
 * Hi,
 * The issues in your form are simple:
 * For example in the “Total Pembelian Barang & Ongkos Kirim” field, you have defined:
 * – as “Symbol to display at beginning of calculated field” the text “Rp. “,
    –
   as “Symbol for grouping thousands”, the symbol: “.”, – and have let empty the
   attribute: “Decimals separator symbol”. If the “Decimals separator” is empty,
   the plugin assumes you are using the common decimal separator “.”
 * You cannot use the same symbol as decimal separator, and for grouping thousands,
   because causes a confusion in the calculus:
 * 1.000 can considered as one thousand, or simply one
 * Please, check the previous symbols in all calculated fields.
 * Best regards.
 *  Thread Starter [raptor_classic](https://wordpress.org/support/users/raptor_classic/)
 * (@raptor_classic)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/cant-make-this-simple-function-work/#post-5864040)
 * it works like a charm now! thank you very much

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

The topic ‘Can't make this simple function work’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](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/)

 * 4 replies
 * 2 participants
 * Last reply from: [raptor_classic](https://wordpress.org/support/users/raptor_classic/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/cant-make-this-simple-function-work/#post-5864040)
 * Status: resolved