• Resolved xakir333

    (@xakir333)


    Hi, developer team. The plugin is awesome but it loads slow.

    I read the forum and unticked the “Dynamically evaluate the equations associated with the calculated fields“.

    Because one developer recommended so to load the form fast. But now the calculated field is blank and not showing the result.

    This is how the form is structured. {

    Fieldname3 = three radio buttons with distinctive values (required)

    fieldname4 = where user put a value in number (required)

    fieldname1 = a hidden field from public (calculated field)

    fieldname5 = The final calculated field (calculated field)

    }

    This is how I configured the equation. {

    fieldname1 = fieldname4/fieldname3

    fieldname5 = fieldname1/number

    }

    Need help loading the form fast and I am very weak in mathematics. The form results are working for me but the form is loading slowly.

    • This topic was modified 1 year, 10 months ago by xakir333.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @xakir333

    You can untick the dynamic evaluation of equations, and enable it by coding after rendering the form.

    Please, follow the steps below:

    1. Untick the “Dynamically evaluate the equations associated with the calculated fields” checkbox in 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(){
    ENABLEEQUATIONS();
    EVALEQUATIONS();
    });
    </script>

    Best regards.

    Thread Starter xakir333

    (@xakir333)

    I have done it but the form is still loading very slowly. On mobile, it takes 8 seconds to load and on PC it takes 6 seconds to load.

    Also, the calculated field show the result like (68.02721088435375) but I want to round the figure to (69). I want the calculated field to show only round figure.

    How to round the figure by the calculator automatically?

    Plugin Author codepeople

    (@codepeople)

    Hello @xakir333

    The plugin includes multiple operations for rounding numbers:

    ROUND, CEIL, FLOOR, PREC

    They are described in the following blog post:

    https://cff.dwbooster.com/blog/2020/09/20/rounding-numbers

    For example, assuming you have the equation fieldname1*fieldname2 and want to round the result to the integer number greater than or equal to it. In this case, you must use the CEIL operation CEIL(fieldname1fieldname)

    Concerning the loading performance. Could you please indicate the page’s URL that contains the form to check the issue in detail?

    Best regards.

    Thread Starter xakir333

    (@xakir333)

    Concerning the loading performance. Could you please indicate the page’s URL that contains the form to check the issue in detail?

    How to share in such a way that the URL is only shown to you and not to public?

    Plugin Author codepeople

    (@codepeople)

    Hello @xakir333

    Sorry, but if your form or web page contains sensitive information, is private, or requires private access, the forum policy does not allow you to request or accept such access or redirect you to another channel where you can share such information.

    Another actions you can take to reduce the loading time are:

    1. Go to the plugin settings page, tick the checkbox to store the JS files in cache, and press the “Update” button.
    2. Be sure the equations entered in the calculated field, or the dependencies do not generate an endless loop.

    Every time a field varies its value, the plugin identifies and evaluates the affected equations. The evaluation of the equations provokes variations in the calculated fields’ values. So, the previous process is repeated until no field varies its value. Something similar happens with the dependencies.

    If you use a calculated field in its equation, you would have an endless loop. However, the endless loop can be caused by multiple fields. Field A uses field B in its equation, field B uses field C in its equation, and field C uses field A, closing the circle.

    Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘The form is loading very slow’ is closed to new replies.