How to allow only a single component to be set from dynamic zone

Hello friends and family,

I’d like to add a dynamic zone to a model, my page model, so the user can pick the style/template of the page. Using the dynamic zone, it allows me to create components that have certain settings specifically for that style/template. Now, I’d like the user to only be allowed to add one. But I cannot set a dynamic zone to repeatable: false or such. The user is always allowed to add multiple components. Am I missing something, or is this a feature request?


1 Like

I have the same issue and would like to known if we could enforce it in some-way.

As a workaround, I created a beforeCreate hook that only keeps the first element of the array