Created
June 21, 2019 15:33
-
-
Save drzraf/a0aa603430dfec2507daaad78e93e9c2 to your computer and use it in GitHub Desktop.
gravityforms-html5-validation consent field
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/gravityforms-html5-validation.php b/gravityforms-html5-validation.php | |
index 5e2c9e0..8eacfed 100644 | |
--- a/gravityforms-html5-validation.php | |
+++ b/gravityforms-html5-validation.php | |
@@ -314,7 +314,7 @@ public function gform_field_content( $field_content, $field, $force_frontend_lab | |
break; // End text, textarea, phone, website, number, select, multiselect, price, username, file, fileupload, post_title, post_content, post_excerpt, post_tags, post_image, post_custom field. | |
case 'checkbox': | |
- | |
+ case 'consent': | |
$value = rgar( $field, 'value' ); | |
if ( empty( $value ) ) { | |
$inputs = rgar( $field, 'inputs', array() ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment