I added this to my custom-functions.php
<?php
add_filter("gform_save_field_value", "save_field_value", 10, 4);
function save_field_value($value, $lead, $field, $form){
if( preg_match("/^[0-9]{3}-[0-9]{3}-[0-9]{4}$/i", $value) ) {
$more = explode("-", $value);
$more = "($more[0])$more[1]-$more[2]";
return $value . ", $more, " . str_replace("-", "", $value);
}
}
?>
I used this code to save phone numbers in different formats in the tag field.
When a user uploads images to the post, the images no longer post.