I have two text fields, where one is a ZIP code and the other is Address.
In the CEP field I use the CEP's API, when I type a CEP it completes the other fields with the results. I need the following validation:
- Validate in 2 fields
- IF THE ZIP CODE is EMPTY,
- ADDRESS should be mandatory, IF NOT,
- ZIP is MANDATORY
Follow a small image of my form
Could anyone help me?