SethAt8vo
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Contact Form 7 Conditional redirect based on drop-down menuHi, @olufemishield. You will need to include the code snippet on the page where the form is located as a script, between an opening and closing script tag. For example, I have mine in the footer.php file of my template.
Hope that helps.
Forum: Plugins
In reply to: [Contact Form 7] Contact Form 7 Conditional redirect based on drop-down menuI came across your post trying to figure out a similar solution and thought I would share. I needed to redirect to a different page based on the select field. Please note, I am not very good with JavaScript, so I will do my best to explain what is going on.
document.addEventListener( 'wpcf7submit', function( event ) { if ( '4765' == event.detail.contactFormId ) { var lpLocation = document.getElementById("lp-location").value; if (lpLocation == "Frederick") { location = 'https://example.com/'; } else if (lpLocation == "Annapolis") { location = 'https://google.com/'; } } }, false )
In the second line, 4765 is the form ID. I have multiple forms and only need this to work on one of them.
On the next line, “lp-location” is the ID for my select field. So my form tag looks like this:
[select* location id:lp-location include_blank "Frederick" "Annapolis"]
Hope that helps. Good luck!
- This reply was modified 6 years, 8 months ago by SethAt8vo.
That fixed it. Thank you! I gave you a 5 star review. I really appreciate the quick response and support!
Okay, thanks! I appreciate you taking the time to look into this.
Seth
Hi Martin,
Thanks for the quick reply.
My shortcode looks like this
[rotatingtweets screen_name='potomacpathways' show_media='1']
. I’m displaying it in the template with PHP.I’ve tried
tweet_link
but it only works when it is set to something less than 115.It is currently removed.
Thanks for your help!
Seth
Forum: Plugins
In reply to: woocommerce country drop down list at checkout page not workingAny luck with this? I’m having a similar issue.
Forum: Fixing WordPress
In reply to: CTRL 1 – etc Heading Size not workingApparently the shortcuts for heading styles has changed. On a Mac it is Ctl+Alt+1.
I’m guessing Sophy’s response of Alt+Shift+1 is for Windows.
Forum: Fixing WordPress
In reply to: CTRL 1 – etc Heading Size not workingI’m experiencing the same issue, and Alt+Shift+1 isn’t working.