setRule

Set a validation rule for the field.