• Resolved 314em

    (@314em)


    HI CodePeople!

    Really enjoying using your plugin. It helped speed through a form creation.

    My page is currently set up like this:
    Form A – users input data
    Form B – users input data
    Form C – users input data
    Form D – gather data from the 3 forms which are on the same page, apply some formulas and show these results as a summary.

    For the input fields I have predefined values which means my summary on page load contains calculated values (working correctly and as expected).

    But after I refresh the page, calculation becomes 0, until I change all the values from form A-C.

    I tried playing with the plugins Script load method (Direct/ Classic) but no luck.

    Any help is appreciated.
    Thank you.

    • This topic was modified 2 years, 8 months ago by 314em.
Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter 314em

    (@314em)

    Not sure I am clear enough. So I apologize, let me try this again.

    3 forms with predefined values.
    4th form does calculations (initially using the predefined values, and later if the user changes any of the values from the previous forms, the calculations would include the new values).

    Now, everything works fine occasionally.

    The calculated fields randomly get’s assigned the correct values from the predefined values) but if I refresh the page, they do get randomly 0’s (basically not reading the placeholder values).

    I can’t find a workaround for it apart from using a button to calculate fields, but even then some times predefined values come back as 0’s. (although in console the values come back correctly)

    So until I don’t change the values calculations are obviously 0.

    Plugin Author codepeople

    (@codepeople)

    Hello @314em

    If you don’t want to evaluate the equations dynamically. But do it the first time the form is loaded.

    1. Untick the checkbox to evaluate the equations dynamically from the “Form Settings” tab.

    2. Insert an “HTML Content” field in the form, and enter the following piece of code as its content:

    <script>
    fbuilderjQuery(document).one('showHideDepEvent', function(){
    EVALEQUATIONS();
    });
    </script>

    Best regards.

    Thread Starter 314em

    (@314em)

    Hi CodePeople,

    Contacted you through your website.

    Kind regards.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Fields not being calculated after refresh’ is closed to new replies.