address validation
Permalink
Has anyone successfully split up the validation for the address attribute?
Currently the address attribute is validated as a whole, so if you leave part of it blank, the popup says the field 'address' is required.
Im looking to split the validation into address line 1, town/city, county, postcode etc, so all parts of the address can be individually validated. If a user leaves the 'County' empty, the error will specifically say the field 'County' is required.
Currently the address attribute is validated as a whole, so if you leave part of it blank, the popup says the field 'address' is required.
Im looking to split the validation into address line 1, town/city, county, postcode etc, so all parts of the address can be individually validated. If a user leaves the 'County' empty, the error will specifically say the field 'County' is required.
![jordanlev](/files/avatars/9756.jpg)
In my own dealings with attribute types, I discovered a big limitation: you can validate an attribute's fields any way you like, but at the end of the day Concrete5 only asks you for a true/false value and assumes that "false" means "missing required data". I could find no way around this myself. Maybe someone else knows of a clever hack or workaround though...