Hi @luxworx,
Thank you for using our plugin.
We are coming up with an addition of a hook for the users to have 3rd party values to the Sheet.
To save the phone number with the + sign you can use that hook “gsc_filter_form_data”, add the custom code, and return the values.
But this will add ‘ sign in front of the phone number in the sheet.
We will add an example for implementation here once we release the new version. So stay tuned.
Thanks
Abdullah
So is this hook ‘gsc_filter_form_data’ available now or I should wait for the next release?
@luxworx,
The hook will be available in an upcoming release.
We will be releasing it by the weekend.
Thanks
Abdullah
@luxworx,
We have just released the plugin. Take the latest and implement the hook as per the below example
add_filter( “gsc_filter_form_data”, “customized_phone_number”, 10, 2 );
function customized_phone_number( $data, $form ) {
// Condition to just apply custom code for a particular contact form id.
if( $form->id() == 5 ) {
// tel-833 is the form field name.
$original_value = $data[‘tel-833’];
unset( $data[‘tel-833’] );
// Set with new value
$data[‘tel-833’] = “‘{$original_value}”;
return $data;
}
return $data;
}
Add this code to your active themes functions.php file or create a custom plugin.
Hope this helps. Let us know.
Thanks
Abdullah
Works perfectly,
Thank you for your excellent support!