Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter wp101afisher

    (@wp101afisher)

    Thank you for your prompt help Takayuki.

    May I make a couple of suggestions?

    • Possibly, adding what to look for in the source in your help article on redirections.
    • Longer term in a future version figuring out a way to display that id integer value in the WP-Admin config panel for ContactForm7 addin.
    Thread Starter wp101afisher

    (@wp101afisher)

    Hi Takayuki,

    Thanks, that number is that shown inside the WP-Admin under the Contact Form configuration?

    If not where can I identify what it is, as I am not seeing it in the Contact Form configuration? Is it only available by viewing the source code of the page?

    Thread Starter wp101afisher

    (@wp101afisher)

    Hi Takayuki,

    See below snippet. I’ve been able to confirm that the wpcf7submit works with the sample dom event, so there must be something else in my code that doesn’t work

    <script>
    document.addEventListener( 'wpcf7submit', function( event ) {
    if ( '9fa9cdd' == event.detail.contactFormId ) {
    // do something productive, Redirect to URL
    setTimeout( () => {
    // Location for Proactive Protect
    location = 'https://buy.stripe.com/eVq14m3Ow8L23cR6VPeZ203';
    }, 2000 ); // Wait for 2 seconds to redirect.
    }
    }, false );
    </script>

    The contactFormId matches what the form ID is, inside the shortcode for the form.

Viewing 3 replies - 1 through 3 (of 3 total)