Hallo Gravity support, I hope you can help me
I have created a Wordpress Page Template, http://www.3am.co.za/blog/wp-submit/
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
?>
<?php
/*
Template Name: Submit
*/
?>
<div class="ginput_container">
<?php gravity_form(1); ?>
</div>
All of this works, but when I now embed this form into Magento as I do with the Calendar and all other plugins on my website, the form does not submit. I troubleshooted it to the fact that action="" is blank.
I can fix this by adding a filter in my functions.php like this,
//Gravit Forms .. replace Action="" for Event submissions page
add_filter("gform_form_tag", "form_tag", 1, 2);
function form_tag($form_tag, $form){
$form_tag = preg_replace("|action='(.*?)'|", "action='/blog/wp-submit/'", $form_tag);
return $form_tag;
}
http://www.3am.co.za/parties/submit-your-party
However, by doing this the form does not check for required fields :/ and rather now takes me to the Page Template URL, http://www.3am.co.za/blog/wp-submit/ which looks nasty :/
I need to make a couple more forms, but I am now stuck, and I need your brilliant coding advice :)
Please help me, I need all the form data to be done on one page, for example, http://www.3am.co.za/parties/submit-your-party
Thanks in advance,
Riaan