When you add this constraint, you can restrict a field depending on an SS Validator
$validator = ZenValidator::create();
$validator->setConstraint(
$field,
new \Milkyway\SS\ZenForms\Constraints\ValidPassword($passwordValidator, $strengthScaleFactor = 0.4)
);
If you use the Complexify Jquery Plugin, this constraint automatically plugs into it.