Validate related field
If there are two related fields, a validation rule can be set to validate the value of one field according to the other field. You can achieve this in two ways:
Through assignment: changing field A assigns a value to field B.
If field B has some validation error, and changing A assigns a valid value to B, B's validation error should be removed.
However, if changing A assigns some invalid value to B, field B won't automatically display the validation error. The error will be displayed if field B is on focus and then on blur or a button is clicked to trigger the field validation.
Through cross-field validation: changing field A affects the validation of field B.