Is it possible to make a property editor in a document type required, based on the value of another property editor (kind of like how Umbraco Forms works). So effectively conditional validation on the property.
Thanks
Is it possible to make a property editor in a document type required, based on the value of another property editor (kind of like how Umbraco Forms works). So effectively conditional validation on the property.
Thanks
Not out of the box. I don’t know of any packages that would give you that kind of functionality so you’d need to make something yourself.
If you do decide to tackle it, there’s another question that has a lot of information about 16 validation that you may find helpful - Property Editor: How do I use valdiation?
Take a look at this example from Niels talk/demo from CodeGarden.
It validates all Rich Text Editors on the content node to ensure words are not too long, with this style of approach you could then register validation in a workspace so that it could check another property in order to make it required.
Might get you inspired or a way to solve your problem.