I need to create a custom validator to compare one field to another field in the same datasource and only allow fieldA to be less than fieldB (both date fields in my case, but I can see similar needs for other field types). The datasource is edited via a reusable component and I want to avoid having custom code in the UI to deal with this so I'd like to define the validator in the ds.xml, similar to the matchesField validator.
Could someone please provide an example of a custom validator implemented in this way?
Could someone please provide an example of a custom validator implemented in this way?
Comment