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.

Gform after submission

  1. I'm currently using the "Gform after submission" hook, however no matter what I do I can't seem to access any information that is passed to the function.

    I've tried using rgpost('input_1_25') and I've also tried at using $entry[1] but both are just returning blanks / null values.

    Am I missing something?

    Basic walkthrough of what I'm trying to do...
    User fills out a competition entry form
    They select whether they want to share with friends using facebook, or email.
    Submit the form
    The "after submission" hook is run and checks to see what their choice was
    If it was facebook it accesses facebook api
    Otherwise if it was email it loops and sends emails to all the people listed.

    Like I said, everything works except for accessing any of the data entered, surely I'm missing something!

    Posted 13 years ago on Thursday September 15, 2011 | Permalink
  2. Sorry, I have to ask. You are running the Gravity Forms v1.6 Beta 3 correct?

    Posted 13 years ago on Thursday September 15, 2011 | Permalink
  3. I always try to avoid running Beta plugins on client servers.

    I'm running v1.5.2.8

    Posted 13 years ago on Thursday September 15, 2011 | Permalink
  4. Ok so an update... It turns out the $entry[1] was working, i just wasn't referencing the right array elements... For those of you having trouble with this just do a print_r($entry) to display the full contents of the array.
    Guess I didn't need help after all! Thanks though :)

    Posted 13 years ago on Friday September 16, 2011 | Permalink
  5. I think Carl was asking which version because the gform_after_submission hook was not added until 1.6.

    In any case, glad you have it working. And the print_r($entry) is a great tip. Thank you for posting it.

    Posted 13 years ago on Friday September 16, 2011 | Permalink

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