Title: Finding fieldnames in console error
Last modified: August 12, 2026

---

# Finding fieldnames in console error

 *  Resolved [rotertal](https://wordpress.org/support/users/rotertal/)
 * (@rotertal)
 * [3 weeks, 3 days ago](https://wordpress.org/support/topic/finding-fieldnames-in-console-error/)
 * Hello the the best WP-Plugin!
 * Just one thing. My forms are working fine but every now and then I find an error
   in the console, eg.
   [CFF] equation eval failed: IF(OR((1) == 1,(1) == 2,(1) =
   = 3), ”, IF((1) == 4, FORMAT(PREC(,2), … Unexpected token ‘,’
 * I can see that one of the values is empty, for example PREC(,2), but when I click
   through to the script in DevTools, all fieldnameXXX references have already been
   replaced by their current values.
 * Is there any way to identify which Calculated Field contains the failing equation
   in the console output?
 * I have forms with a large number of calculated fields, so locating the affected
   field manually can be quite difficult.
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Author [CodePeople2](https://wordpress.org/support/users/codepeople2/)
 * (@codepeople2)
 * [3 weeks, 3 days ago](https://wordpress.org/support/topic/finding-fieldnames-in-console-error/#post-18991839)
 * Hello [@rotertal](https://wordpress.org/support/users/rotertal/),
 * The issue you are reporting is caused by a field that was removed from the form
   while the equations that reference that field were not updated.
 * For example, if you have an equation such as `PREC(fieldname123, 2)` and you 
   remove the `fieldname123` field from the form without updating the equation that
   references it, the plugin cannot find the `fieldname123` reference when the equation
   is evaluated, which results in the error you mentioned.
 * Please note that the plugin displays an alert indicating that the field you are
   removing is being used by an equation and highlights the affected calculated 
   field.
 * Could you please provide the link to the website page containing the form? This
   will allow us to identify the equation that is causing the issue.
 * Best regards,
   CodePeople Development Team

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffinding-fieldnames-in-console-error%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](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/)

 * 1 reply
 * 2 participants
 * Last reply from: [CodePeople2](https://wordpress.org/support/users/codepeople2/)
 * Last activity: [3 weeks, 3 days ago](https://wordpress.org/support/topic/finding-fieldnames-in-console-error/#post-18991839)
 * Status: resolved