• Resolved rotertal

    (@rotertal)


    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

    (@codepeople2)

    Hello @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 to reply to this topic.