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.

How do I post to a URL

  1. I need to post my form data to a 3rd party database. The 3rd party said my form has to post to: https://www.leads4000.com/14553/go.ilp?SID=

    How do I accopmplish this?

    Posted 11 years ago on Wednesday February 16, 2011 | Permalink
  2. My domain is comparefhahomeloans.com

    Posted 11 years ago on Wednesday February 16, 2011 | Permalink
  3. Gravity Forms isn't designed to post to a 3rd party service. It's designed to be integrated with 3rd party services via custom code and API hooks.

    It is possible to change the post action and point it to the 3rd party URL, however one thing to keep in mind is if you do this you both Gravity Forms form field validation (because you have changed the form action) and Gravity Forms would also no longer store the entry or send email notifications because it no longer would control the form action.

    If you absolutely have to change the form action you can do so using custom code and the gform_form_tag hook. You would add the custom code to your themes functions.php file.

    Here is an example of the gform_form_tag changing the action:

    <?php
    add_filter("gform_form_tag", "form_tag", 10, 2);
    function form_tag($form_tag, $form){
        $form_tag = preg_replace("|action='(.*?)'|", "action='custom_handler.php'", $form_tag);
        return $form_tag;
    }
    ?>
    Posted 11 years ago on Wednesday February 16, 2011 | Permalink
  4. Carl,

    I am still confused as to how the from would get posted to the URL I mentioned.
    Are you interested in customizing this? If so, how much$?

    Posted 11 years ago on Wednesday February 16, 2011 | Permalink
  5. The code above was an example, you would have to customize it to suit your needs and those of the 3rd party you want to integrate with.

    We don't do customizations ourselves as our hands are full with product development and supporting our product. Here are some WordPress consultants you could contact who have Gravity Forms customization experience that may be able to assist you:

    Ounce of Talent
    http://www.ounceoftalent.com

    WebDev Studios
    http://www.webdevstudios.com

    Posted 11 years ago on Wednesday February 16, 2011 | Permalink
  6. Would "custom_handler.php" be replaced with https://www.leads4000.com/14553/go.ilp?SID=

    Posted 11 years ago on Wednesday February 16, 2011 | Permalink
  7. Thanks

    Posted 11 years ago on Wednesday February 16, 2011 | Permalink
  8. Yes, the custom_handler.php would be replaced with where you want to post the data to.

    Posted 11 years ago on Wednesday February 16, 2011 | Permalink