Would it be possible to point to a page after displaying the error message “‘You must be 18 or older to continue” in the following code function.php? “add_filter(‘quform_element_valid_8_210’, function ($valid, $value, $element) { if ($valid) { $age = date_diff(date_create($value), date_create(‘now’))->y;
if ($age < 18) { $element->addError(‘Nous ne sommes pas en mesure de poursuivre.<br>Vous devez avoir au moins 18 ans pour vous inscrire.’); $valid = false; } }
return $valid; }, 10, 3);”
thank you for helping me hide
This topic was modified 5 years, 2 months ago by beingo.