Status validator not trigggered

Good morning.

We are currently developing a custom validator that will check if the status field of a content has been filled (StaticDropdown) under a specific condition but we are facing a problem that the validator is not triggered at all unless an option has been selected. We have also seen that the validator “non-empty” is not triggered for that field either but the “required” does.

Is there a way we can replicate the behaviour of the “required” for our custom validator?

Regards.

Unless you are on a really old version, all validators work the same. IIRC before version 13.3 the required validator wasn’t a real validator but more hardcoded into the validation. Of course if your value is optional then it won’t be triggered unless there is a value. And the non-empty is meant to be used with optional fields.