Replies: 0
First of all, thanks for amazing plugin, saved my day.
But there is a bug currently that throws 500 internal server error on ajax request if the fields for spreadsheet are not populated for that form.
I do not want all my forms to save to Google Sheets, only certain once.
So I fixed it, but I’m afraid if I update the plugin it will override those changes. So I’m posting here so you (the dev) can update the plugin with those changes.
in file:
/cf7-google-sheets-connector/includes/class-gs-service.php on line 86
change this:
if ( $submission ) {
to this:
if ( $submission && isset($form_data[0]['sheet-name']) && $form_data[0]['sheet-tab-name']) {
This way if the sheet-name and sheet-tab-name is not set, the code will not try to send data to Google Sheet.
Thanks again.