We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
gw-capitilize-submitted-data.php
1 parent 1d84084 commit 505c724Copy full SHA for 505c724
gravity-forms/gw-capitilize-submitted-data.php
@@ -28,6 +28,11 @@ function gw_capitalize_submitted_data( $form ) {
28
}
29
} else {
30
$input_key = sprintf( 'input_%s', $field['id'] );
31
+ // Value hidden or empty, skip it.
32
+ if ( empty( $_POST[ $input_key ] ) ) {
33
+ continue;
34
+ }
35
+
36
if ( $field->type == 'list' ) {
37
$_POST[ $input_key ] = array_map( function( $value ) {
38
return ucwords( strtolower( $value ) );
0 commit comments