Hi,
I'm using gform_after_submission to populate a table in database after a person submit a form:
add_action("gform_after_submission_5", "input_fields", 10, 2);
function input_fields($entry, $form){
global $wpdb;
$id = $entry['id'];
$date = $entry['date_created'];
$title = $entry['1'];
$firstname = $entry['2.3'];
$lasname = $entry['2.6'];
$SQL = "INSERT INTO abstracts ( abstract_id, date, firstname, lasname ) VALUES ( '$id', '$date', '$firstname', '$lasname' )";
$wpdb->query($SQL);
}
I also using a plugin Admin&Single Gravity Forms Add-On that simulate a post and let the users to edit their entry with a given link (/.../form/?rid=1).
When someone submit the modified form, the entries are updated in the gravity forms database, but the gform_after_submission doesn't update the other database.
I think will be the same if I edit the entry by the admin side.
How is possible to update the entry also in the second database?
Than you, Marco