• Resolved kehorn99

    (@kehorn99)


    I’m working on a form that has many fields and accesses a CVS data file. I’m attempting to reduce page load time. I’ve considered using multiple forms to reduce the number of fields and operations on page load. Is there a way to lazy load a second form on the same page (i.e. limit running the code and accessing the database in the second form either by scrolling or by a timed delay?

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

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

    (@codepeople)

    Hello @kehorn99

    No that’s not possible, but you can implement a lazy evaluation of the equations.

    1) Untick the checkbox: “Eval dynamically the equations associated to the calculated fields”, in the “Form Settings” tab.

    2) And then, insert a “HTML Content” field in the form with the following piece of code as its content:

    
    <script>
    fbuilderjQuery(document).one('showHideDepEvent', function(){
    jQuery('[id*="cp_calculatedfieldsf_pform_"]').attr('data-evalequations',1);
    });
    </script>
    

    Best regards.

    Thread Starter kehorn99

    (@kehorn99)

    Thanks for the fast response. To clarify. If I uncheck the box for dynamic execution of changes will I have to use a Submit button? For clarification, there will be no INPUT in the second (delayed) form as I plan to pull the input data from the first form. I’d prefer not to have a submit button. Can the script alone be used under this scenario to execute the form?
    Also, can you briefly explain the difference between dynamic on changes with and with keyup?

    Plugin Author codepeople

    (@codepeople)

    Hello @kehorn99

    No, you don’t need a button to evaluate the equations, the code I sent you previously enable the dynamic evaluation of the equations after the form be loaded, and not in the loading process.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Lazy loading multiple forms on page’ is closed to new replies.