- Create a component in Blossom (e.g, a textField)
- Set a validator:
- Check that when setting the validator, old info.magnolia.ui.form.validator.definition.RegexpValidatorDefinition class is instantiated instead of info.magnolia.ui.field.RegexpValidatorDefinition
- Don't fulfill any value at the previous field (cityId)
- Try to save the dialog
- Check the validator is triggered tho no value has been typed
Validator is executed only if the field has data
Validator is always executed
Switch to new M6UI info.magnolia.ui.field.RegexpValidatorDefinition class
This is not directly a Blossom issue, same behavior happens for any field regardless the definition process. E.g, go to our demo and edit the TextAndImage component. At the headline section include the following validator (old class):
Now go to Pages app, create a new page and on the main area, create a TextAndImage component. Try to save it without inputing any value and check the validator is executed.
Perform the same test at the mtk2 with the new regexValidator class:
Check that if you try to save the dialog when no data has been included at the headline field, the dialog gets saved properly.