Age verification gate for gravity forms
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

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);
Where 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 gform_field_validation_8_2.

You can also add that same filter multiple times for multiple forms and fields without recreating the dob_validate function.