I am using SXA 1.8, and Sitecore 9.1
I am trying to add a validation for a Date type field where it is required, and the user cannot save the item unless this field has a value, I have copied Sitecore's "Required" validator found at /sitecore/system/Settings/Validation Rules/Field Rules/Required, and added the following to it:
I then added this validation for the template field i wanted, like this:
However, whenever i try to save the items of that template without filling in the required field, it saves normally,and no validation warning or anything is issued. Any advice on what could be missing to achieve the goal of stopping the user from saving if this field is not filled is appreciated.