PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Challenges with gform_pre_submission / gform_pre_submission_filter

  1. I had been previously using gform_validation and at the conclusion of all validations doing the form modifications needed. Saw in the documentation that Gform_pre_submission or Gform_pre_submission_filter would be better place for that kind of work. Trying to do so lead to two rather strange issues.

    If I use Gform_pre_submission_filter following the basic examples in the documentation, upon submission of my form instead of success message I receive a page not found with the URL having an extra /:/ at the end.

    If I use Gform_pre_submission following the basic examples in the documentation, I can't get it to do any actual updates. The code below is a small subset example.

    add_filter("gform_pre_submission", "pre_rideshareSubmission");
    
    function pre_rideshareSubmission($form){
    
    	$_POST["input_6"] = $_POST["input_13"] . " TO " . $_POST["input_28"] . " ON " .  $_POST["input_10"];
    
    	}

    This thread was the closest I could find that relates.

    Posted 7 years ago on Saturday February 25, 2012 | Permalink
  2. Closeable - Was an issue with how I was calling the filter / action in my class for plugin.

    Posted 7 years ago on Saturday March 3, 2012 | Permalink
  3. yammy
    Member

    I have the same issue when using this filter, it adds that strange /:/ string at the url, the form stops saving the post to database and instead of sucess message, it points to a 404 error page.

    Man. How did you get to solve this?

    Posted 6 years ago on Thursday November 29, 2012 | Permalink
  4. @yammy, if you need help with this, please show the code you are using and a link the page on your site where this form is visible, if applicable. Thank you.

    Posted 6 years ago on Saturday December 1, 2012 | Permalink
  5. @yammy, I will close this topic as I see you have created a new topic here:
    http://www.gravityhelp.com/forums/topic/form-suddenly-stops-saving-created-form-data

    Posted 6 years ago on Saturday December 1, 2012 | Permalink

This topic has been resolved and has been closed to new replies.