you can integrate it with google spreadsheet with apps script like this:
1. follow nstructions here:
http://mashe.hawksey.info/2011/10/google-spreadsheets-as-a-database-insert-with-apps-script-form-postget-submit-method/
2. create after submission hook
add_action('gform_after_submission_30', 'post_to_spreadsheet', 10, 2);
function post_to_spreadsheet($entry, $form) {
$post_url = 'your google web app URL';
$body = array(
'first_name' => $entry['5.3'],
'last_name' => $entry['5.6'],
'email' => $entry['7']
);
$request = new WP_Http();
$response = $request->post($post_url, array('body' => $body));
}
make sure that headers in your google spreadsheet match $body. for example: first_name, last_name etc.
and done!
Posted 11 years ago on Thursday June 27, 2013 |
Permalink