Skip to content

Instantly share code, notes, and snippets.

@rustyeddy
rustyeddy / contact-form-7-redirect.js
Created February 2, 2015 19:24
Contact Form 7 - Redirect to a different thank you page based on input from from a pull down select form field.
/**
* Contact form 7 - Redirect to a specific page based on the value of a form
* field. In this specific example I created a drop down menu item and gave
* it an id of 'select-menu', I also created .
*/
function cf7_redirect() {
// Set the base url for contact-form-7
var url = document.referrer;
/*
Always show arrows (Flex Slider)
Usage: Copy and paste this code into your themes style.css file
*/
.metaslider .flex-direction-nav .flex-prev {
opacity: 1;
left: 5px;
}
.metaslider .flex-direction-nav .flex-next {
opacity: 1;