Hi there,
based on Bastians contactform example (https://gist.github.com/bastianallgeier/c396df7923848912393d) I want to add a rule checking if some variable is similar to another. For example if to fields containing mailadresses are the same.
Based on the cheat sheet validators (https://getkirby.com/docs/cheatsheet/validators/same) I tried to do something with ::same or ::equals but it didn’t work out.
Is there a validator I can use like
…
$rules = array(
‘email’ => array(‘required’, ‘equals’ => $value2),
…
or am I missing something in the docs?
Thanks very much!
Tobias