wp101afisher
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [Contact Form 7] Issues getting form submission to redirect to alternate URLThank 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.
Forum: Plugins
In reply to: [Contact Form 7] Issues getting form submission to redirect to alternate URLHi 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?Forum: Plugins
In reply to: [Contact Form 7] Issues getting form submission to redirect to alternate URLHi 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.
- This reply was modified 11 months ago by wp101afisher.
Viewing 3 replies - 1 through 3 (of 3 total)