• Resolved bluefoxadvertising

    (@bluefoxadvertising)


    I’m using CFF with Divi and any page that I have a Calculator installed on becomes unresponsive. I deactivate the plugin, then the page works fine. What can I do to fix this?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @bluefoxadvertising

    The issue you describe occurs if you have generated an endless loop in the form.

    I’ll try to describe how the plugin works. If the dynamic evaluation of the equation is enabled (it is a checkbox in the “Form Settings” tab), when the user varies a field’s value, the plugin identifies the equations affected by the field and evaluates them.

    However, the evaluation of the equation modifies the values of calculated fields. So, the process is repeated until no field varies its value.

    After describing how the plugin works, I’ll list the possible sources of infinite loops.

    If field “A” is a calculated field and you use it in its equation, the evaluation of the equation will vary the field value, and it will trigger the equation, repeating the process in an endless loop.

    The same happens if you use field A in the equation of field B and field B in the field A equation. The chain can be longer: using field A in the equation of field B, field B in the equation of field C, and field C in the equation of field A, closing the circle.

    The endless loop can affect the dependencies too. For example, the equation of field A uses field B. If you define field B as dependent on the equation’s result, you would have generated an endless loop.

    For example, in your form, the equation of the fieldname10 is fieldname1-fieldname10

    Since you are using the calculated field in its equation, you have generated an endless loop.

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Page Unresponsive’ is closed to new replies.