When creating an item, how can we make fields required based on the status field ?
is the only solution to create a ling list of and/or conditions in the create action of access policies ?
When creating an item, how can we make fields required based on the status field ?
is the only solution to create a ling list of and/or conditions in the create action of access policies ?
You can achieve this through the conditional rules on your field configuration. Here is a quick demo of how you can set this up: https://youtu.be/b1R-SoIZiY4 and for a longer version of this, you can review the ‘short hop’ video here: Conditional Fields | Directus TV
Hi ! tahnks for your help ! Sorry wasn't clear in my question. I was mainly thinking about post requests through the api. Would the conditional rules apply also ? I'll check the videos. Thanks a ton !
– PosorokoHi, in this case, you can use a flow with a filter event hook on item create or update where you can add your validation. A combination of these 2 is a great solution so your users get immediate feedback before they try submit the form.
– alexv-directus