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.

what array should i send to 3rd party and return, post-submit

  1. hello,

    i am using the after_submit in my functions page, and the correct data is going to my other site with my other database

    however, when i send the user back to the gravity form page, i can't seem to send the right array/fields/variables back so the gravity form knows the user who just submitted

    what should i send out and back?


    Posted 12 years ago on Monday October 17, 2011 | Permalink
  2. gform_after_submission is available on 1.6+ only. Is that the version you're using? If not, gform_post_submission works nearly identically in versions prior to 1.6.

    Can you share any of the code you are using? It can't envision the scenario you're describing. Thank you.

    Posted 12 years ago on Tuesday October 18, 2011 | Permalink
  3. If you're using the gform_post_submission or gform_after_submission hook, your entry has already been created and notifications have been sent as well. What do you need to do after sending the data to the 3rd party/database? Gravity Forms is done with your form submission at that point.

    Posted 12 years ago on Tuesday October 18, 2011 | Permalink
  4. hi,

    thanks for the response

    when i send it back, i want it to say, "thanks for submitting, john, an email will be there soon" or some such

    but now it goes back to the blank contact form

    i put the header back to a different page for now, but would rather have the confirmation

    you know what i mean?


    Posted 12 years ago on Tuesday October 18, 2011 | Permalink
  5. I understand what you want, I think, but it's not related to Gravity Forms.

    I guess it depends on what the 3rd party/database is doing and how it redirects. Can you explain more about your situation?

    Posted 12 years ago on Tuesday October 18, 2011 | Permalink
  6. i'm sure i'm not doing it the conventional way, but we have to input the info into a CRM on a different server

    so i am doing a form with hidden values, sending it to the other server, entering it into the db there, then doing a header:location back to the gravity forms site

    so what i'm wondering is what triggers the "thanks for submitting, john"?

    ideally, i'd put that in a session or something so the 3rd party db insert is seamless

    so i think i am asking a gform question - what makes the form say "thank you, john"?


    Posted 12 years ago on Tuesday October 18, 2011 | Permalink
  7. Without your external CRM at all:

    When you submit a Gravity Form, an entry is created, a notification is sent (if you configured it that way) and the confirmation is displayed. What appears in the confirmation is completely up to you. If you want it to say "thank you john" where john is the name someone entered into your form, then you would use a text confirmation, enter your "thank you " text, then a merge tag from the drop down, to insert one of the pieces of submitted data (in this case, first name.)

    That's how it works with Gravity Forms. None of that has anything to do with gform_after_submission or gform_post_submission. That event happens totally outside all the above happening.

    Does that clarify things at all?

    Posted 12 years ago on Tuesday October 18, 2011 | Permalink
  8. sorry, i must not be explaining right.

    forgetting the CRM, forgetting what the confirmation says, what exactly calls the confirmation?

    somewhere is something like "if submitted then show confirmation"

    what i am looking for is that conditional so i can make the confirmation happen after coming back from my CRM

    so what triggers the confirmation? where can i find that?


    Posted 12 years ago on Tuesday October 18, 2011 | Permalink
  9. You could contact your CRM/database by running code using the gform_pre_submission hook, then when it's done with the CRM, change the submitted form values to whatever you want, and change the notification at that point too.

    All the developer docs are located here:

    I'm sure you can find a specific spot in the processing to run your code.

    Posted 12 years ago on Wednesday October 19, 2011 | Permalink
  10. thanks again, but i'll still have the same issue whether it's pre or post

    i need to send the right data to the wordpress and the 3rd party db

    i'll just try to send entry as an array and see if that works

    Posted 12 years ago on Tuesday October 25, 2011 | Permalink
  11. Let us know what you turn up. Thanks for the update.

    Posted 12 years ago on Wednesday October 26, 2011 | Permalink