• Resolved Bakhshi

    (@bakhshi)


    Hi
    I removed the ticke
    “Eval dynamically the equations associated to the calculated fields”
    in the form setting!

    I want to calculate the fields when clicking on the submit button and then enter the thank you page!
    How to convert the submit button as a calculation button?

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

    (@codepeople)

    Hello,

    The idea is not disable the automatic evaluation of the equations, please, activate this option again, but then, in the settings of calculated field, tick the checkbox: “Hide Field From Public Page”, in whose case the result would be accessible from the thank you page and notification emails after the form be submitted, and not directly on the form.

    Best regards.

    Thread Starter Bakhshi

    (@bakhshi)

    So
    This is not possible!
    Because some field equations are server side!
    If I enable this option, the result is automatically calculated!
    What to do with spam robots?
    Because they are consuming my server resources!

    Plugin Author codepeople

    (@codepeople)

    Hello @bakhshi

    You always can tick the checkbox: “Do not load the forms with crawlers” in the settings page of the plugin to prevent the form be generated when your website is visited by crawlers.

    However, if you want to submit the form automatically, after the equations be evaluated, and the equations are defined as SERVER SIDE equations, you can:

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

    – Assuming the calculated field that calls the server side equation is the fieldname1, insert a second calculated field, that would be used as auxiliary, with the following piece of code as its equation:

    
    (function(){
        if(fieldname1) jQuery('[id*="cp_calculatedfieldsf_pform_"]').submit();
    })()
    

    So, the form would be submitted automatically when the fieldname1 field has a value, after the server side equation be evaluated.

    Please, for additional questions, related with features in the commercial versions of the plugin, create a ticket in our private website: Contact Us

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘the submit button as a calculation button’ is closed to new replies.