How can I only allow setting a field in directus, if another field is empty?

123 Views Asked by At

In my Directus collection called link, I have two fields: page and url.
Only on at a time should be set.

I added a condition to the url field and set it to "Page is null". I did the same for page, where I set the rule to "Url is null".

enter image description here

But it doesn't do anything, creating a link while setting both url and page still works.

0

There are 0 best solutions below