• Resolved jlbillon78

    (@jlbillon78)


    Hi, i’m trying to use the button field for this purpous:

    – When pressing it, it should:
    – Calculate some fields
    – Send me an email with the telephone number required to complete the form

    Is this possible?

    Thanks in advance

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

    (@codepeople)

    Hello @jlbillon78

    If you want to use a button for evaluating the equations and submit the form, you should select the “Calculate” option as the button’s type and enter the following piece of code as its on-click event:

    jQuery(this.form).submit();

    Best regards.

    Thread Starter jlbillon78

    (@jlbillon78)

    Thanks for your answer. I already did that, but no matter you press the button, the field with tha calculated value shows the result.

    Plugin Author codepeople

    (@codepeople)

    Hello @jlbillon78

    Yes, that’s correct. By pressing the calculate button, the equations are evaluated.

    To display the results only after form submission, you should configure the calculated field as hidden by ticking a checkbox in its settings, and then insert the shortcode for results into the “thank you” page content:

    https://cff.dwbooster.com/documentation#thanks-page

    For additional questions about commercial features you should contact us through the plugin website:

    https://cff.dwbooster.com/contact-us

    Best regards.

    Thread Starter jlbillon78

    (@jlbillon78)

    Thanks, I’m afraid I cannot find the “thank you” page content. I’m using Divi builder, has it anothing to do with Divi?

    Plugin Author codepeople

    (@codepeople)

    Hello @jlbillon78

    It does not matter if you use Divi or any other pages editor. You should insert the widget for shortcodes or even the widget for HTML and insert the shortcode for results inside it.

    What is the version number of your plugin copy?

    Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Button field’ is closed to new replies.