It really depends on what you are trying to do.
If you are trying to pass form data to an external application or an external URL when the form is submitted and do so behind the scenes, so the user doesn't see it happen and the user remains on your site... then you must do so by writing custom code and use the gform_after_submission hook.
The gform_after_submission hook allows you to execute custom code and gives you access to the entry data that is created by the form. You can then execute custom PHP to do whatever you want with that data, send it to an external URL, etc. It's your custom PHP so you can do what you want.
This hook is documented here:
http://www.gravityhelp.com/documentation/page/Gform_after_submission
Your custom code would go either in your themes functions.php file, or you would create your own custom plugin and activate it if you want your custom code to be self contained and not part of your theme files.
If you want to physically redirect the user to this 3rd party site and pass data to it, then you can use the Redirect option for the Confirmation settings in the Form Settings. You can then use the query string builder to pass field data to that URL.
So it really depends on what you are trying to do. It sounds like you want to do it behind the scenes, so custom code and the gform_after_submission hook is probably what you are going to need to utilize.
Posted 13 years ago on Monday November 21, 2011 |
Permalink