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.

Add WP user and Post to second URL

  1. Is there a Gravity Form way of creating a new user in WP and posting the entire form data to another URL at the same time?

    Basically, we've got an order form. We want the form to test for unique WP email and username, then upon successful payment add the User to WP and at the same time Post to our eCommerce system.

    If this works, I'l buy it!

    Thanks!
    Mark Winstein

    Posted 12 years ago on Wednesday September 7, 2011 | Permalink
  2. Gravity Forms can create users using the User Registration Add-On which is available with the Developer License.

    Currently the only way to post data to a remote URL is through the use of hooks and some custom PHP you would have to write to send the form data to a remote service. It isn't something it will handle automatically for you but the API hooks are there to allow you to do this as a customization.

    You wouldn't edit the Gravity Forms files, you would add custom PHP to your themes functions.php to customize how Gravity Forms works.

    An Add-On to make posting data to 3rd party URL's easier is something we plan on creating in the future.

    Posted 12 years ago on Wednesday September 7, 2011 | Permalink
  3. Thank you for your clear reply. What you're saying might work - but now I need to get more specific.

    The main form I want to use is an order form that collects credit card data, etc. and signs people up for access to a WordPress site if the payment goes through.

    So, for this form to work, it needs to be able to test for unique WordPress username and email, and also be able to catch errors if the payment doesn't' go through.

    I'm looking at doing a totally custom form, but is there any way I could do this more easily with a Gravity Form?

    Thanks!
    Mark

    Posted 12 years ago on Wednesday September 7, 2011 | Permalink
  4. I'm keen on this too. I've got CURL and SOAP routines in php. I have checking for form elements (e.g. cvv must be 3 or 4 digits, etc.) and if there's an error, I want to <?php if ($err<>'') echo $err3 ?> and not do whatever. One part that worries me is that I have the form action set to <?php echo $_SERVER['PHP_SELF'] ?> ... and maybe my stub test is wrong, but it's not coming back to that page.

    Is there an alternate approach? I ultimately want the page to get a credit card authorization, post data to a CRM, and if return code is right, launch the google conversion code that adwords gave us.

    Posted 12 years ago on Sunday September 11, 2011 | Permalink
  5. Jim, there are hooks for validation and hooks for sending data to 3rd parties built in to Gravity Forms. I think you will be able to perform whatever code integration you need. If you've already purchased Gravity Forms, please start a support topic and we will be happy to help you with the integration.

    Posted 12 years ago on Monday September 12, 2011 | Permalink

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