• Resolved mryotoad

    (@mryotoad)


    I’ve got 3 fields that we total in a calculated field (1).
    Six that we multiply together in a calculated field (2).
    Six more that we multiply together in a calculated field (3).

    If I put a fourth calculated field that is c1/((c2-c3)/12) it says ‘Infinity calculation result’. So I’ve added another calculated field that is (c2-c3)/12 which is hidden (4) and the final calculation is c1/c4.

    Appeared to work fine in testing but now is throwing an ‘Uncaught Range Error: Maximum call stack size exceeded’ and the final result is incorrect.

    Any thoughts?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @mryotoad

    I hope you are doing good today.

    There can be some loop in calculations but based on your description it does not look like it.

    We have some similar reports about formating in separators, Could you correct them from 1 234 567,89 o 1,234,567.89 and see if this will solve the issue?

    If the above change will not give positive results, please export your form, upload it to google drive or dropbox, and share a link in your next reply so that we could take a closer look at this. Also mention all the field names which have this issue.

    Kind Regards,
    Kris

    Thread Starter mryotoad

    (@mryotoad)

    Thanks Kris,

    Did as requested with no successs. Noticed that the number fields did have a different mask than the calculation fields but that has been fixed now.

    Additionally, the first three fields were set to two decimal places but weren’t allowing any to be entered. I changed them to three and then after testing, but them back to two. They appear to be working now.

    Just noted however that almost immediately after rendering, I’m getting Error: Cannot calculate node of unknown type “Number” in the console and after entering an initial value, the console starts with Infinity Calculation Result.

    I did set the default value for all fields to zero this morning to ensure it had nothing to do with NaN calculations.

    Basically, I’m stumped.

    The form is available here: https://drive.google.com/file/d/1bIprxu5irrC46Ff4rN–zJkVfsqoqRG2/view?usp=sharing

    Thanks!

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @mryotoad ,

    I wanted to check your form, but the link throws an error:

    Sorry, the file you have requested does not exist.

    Make sure that you have the correct URL and the file exists.

    Can you check the uploaded file and let us know?

    kind regards,
    Kasia

    Thread Starter mryotoad

    (@mryotoad)

    Very strange. Here is the link again: https://bit.ly/3NF1lsv

    • This reply was modified 2 years, 10 months ago by mryotoad.
    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @mryotoad

    Thank you for the form,

    I couldn’t replicate the issue, but I noticed the exported form is from Forminator 1.15.12 but our updated version is 1.15.14, could you please update the plugin and check if the issue is gone?

    Best Regards
    Patrick Freitas

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @mryotoad ,

    We haven’t heard from you for several days now, so it looks like you don’t need our assistance anymore.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Slow and incorrect calculations.’ is closed to new replies.