Age verification gate for gravity forms
Use the piece of code in your themes
functions.php or as a individual plugin.
You can also edit the codes according to form and field:
add_filter("gform_field_validation_1_1", "dob_validate", 10, 4);
gform_field_validation_1_1 is for form 1 and field 1. If your forms id is 8 and field number is 2, you can change it to
You can also add that same filter multiple times for multiple forms and fields without recreating the dob_validate function.