Created
February 2, 2017 22:04
-
-
Save gera3d/b240e11a3f2d8d57f34edeca40089c29 to your computer and use it in GitHub Desktop.
Gravity Refresh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter("gform_confirmation", "confirm_change", 10, 4); | |
function confirm_change($confirmation, $form, $lead, $ajax){ | |
$confirmation = array('redirect'); | |
return $confirmation; | |
header("Location: http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"); | |
exit; | |
} |
//Add message at the end of submit for every form
add_filter("gform_confirmation", "confirm_change");
function confirm_change($confirmation){
$confirmation = 'Your message has been successfuly sent. To Send another message Click Here';
return $confirmation;
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
add_filter("gform_confirmation", "confirm_change", 10, 4);
function confirm_change($confirmation, $form, $lead, $ajax){
echo "<script type='text/javascript'>alert('Message Sent')</script>";
$confirmation = array('redirect');
return $confirmation;
}