• Resolved Rémon

    (@remonmegelink)


    Hi, on my website: Bakkerij Rémon Calculator Bread Formulas, I have a problem with a calculatorform I build, I’m not sure how to specify the problem.

    My Chrome Console says: Uncaught RangeError: Maximum call stack size exceeded

    I’m not quite sure how to fix this. Enabled troubleshooting with only CFF enabled, but this didn’t fix the error. Don’t really know how where to go from here, also not sure when the error first happened.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @remonmegelink,

    Thank you very much for using our plugin.

    If your browser displays the error message “Uncaught RangeError: Maximum call stack size exceeded”, it means that you have generated some endless loop.

    I’ll try to describe first how the plugin works.

    Each time the user enter a value, the plugin checks every calculated field in the form to identify the equations affected by this value and evaluate them. However, the equations’ evaluation modifies the calculated fields’ values. So, the plugin must repeat the process until no field value varies.

    So, if a field is used in its equation, it generates an endless loop. Each time the equation is evaluated, it modifies the field value launching the equation in an endless loop.

    Something similar happens when field A is used in the equation of field B and field B in the equation of field A. The chain could be longer.

    Or with dependencies. For the equations context, the value of a disabled dependent field is zero or its original value when the field is active.

    In your form, the equation in the fieldname143 field uses the fieldname24, and the fields fieldname130, fieldname134, and fieldname144 were configured as dependent on the equation’s results.

    However, the equation in the fieldname24 is:

    fieldname123+fieldname131+fieldname134+fieldname137+fieldname205+fieldname208+fieldname172+fieldname175+fieldname178+fieldname185+fieldname188+fieldname191+fieldname194+fieldname198+fieldname211+fieldname214+fieldname217+fieldname245+fieldname278

    It uses the fieldname134. So, you created an endless loop between both calculated fields.

    This problem might be present between the fieldname24 field and other calculated fields in the form.

    Best regards.

    Thread Starter Rémon

    (@remonmegelink)

    Thanks! I disabled the dependencies for showing fields, so the fields are always there, the calculations are working again without looping!

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

The topic ‘Uncaught RangeError: Maximum call stack size exceeded’ is closed to new replies.