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.

Forms with custom action? Can form only send Email?

  1. 2 Questions

    -If we create a hook to post a form to a custom URL, does the javascript validation still work? I am aware that we would need to take care of any PHP handling our selves.

    -Can we set a contact form to only send an email and therefore not store anything in the database?

    Posted 12 years ago on Thursday May 26, 2011 | Permalink
  2. If you change Gravity Forms so the form action points to a 3rd party URL you will lose validation. This isn't recommended. There are other ways to integrate with 3rd parties that are more efficient and maintain complete Gravity Forms validation and functionality.

    If you want to post data to a 3rd party there are API hooks you can use to do this when the form is submitted. We are also planning on creating an Add-On that will enable posting data to 3rd parties by mapping fields using a visual UI.

    Currently there isn't an option to not store the entry in the database, however this can be done via a simple customization and code snippet which we can provide you with. It is a feature we plan on adding so a code snippet won't be necessary in the future.

    Posted 12 years ago on Thursday May 26, 2011 | Permalink
  3. Thanks for your reply....Can you show me how to create the API hook and maybe also the code snippet to not post inside the database? Will these snippets be removed if we update Gravity Forms?

    Also, we have pretty much decided to purchase a license. Will the Personal package apply for the features mentioned in this post?

    Thanks again

    Posted 12 years ago on Friday June 3, 2011 | Permalink
  4. Hi webdev-01,

    Here is a snippet that will automatically delete entries from the database after the post submission: http://pastie.org/1736243

    Here is a link to our developer documentation which includes more information on the gform_post_submission which you will likely end up using to post to a third party system.

    http://www.gravityhelp.com/documentation/page/Developer_Docs

    All of this information is available with a GF Personal license.

    Posted 12 years ago on Friday June 3, 2011 | Permalink
  5. Hi David

    Is there anywhere in the documentation where you can see how to post the information to 3rd party site? I was going to use cURL......

    Posted 12 years ago on Friday June 10, 2011 | Permalink
  6. And what are the 3rd of 4th parameter used in the example "("gform_post_submission", "set_post_content", 10, 2);" ?

    Posted 12 years ago on Friday June 10, 2011 | Permalink
  7. Cancel that.....found out what they are. Thanks

    http://codex.wordpress.org/Function_Reference/add_action

    Posted 12 years ago on Friday June 10, 2011 | Permalink

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