Multiselect required in a structure field - no alert message on draft page (bug?)

Hi,

When I add a multiselect field in a structure field and this multiselect is required, an empty row is created in the structure field if the multiselect is not filled in. I can still save the page if it’s in draft status.

However, if the page is in unlisted or public status, a warning message appears to indicate that the required multiselect field has not been filled in which is the expected behavior.

Is it a bug that the warning message does not appear when the page is in draft status?

Here a code exemple added on the starterkit in note.yml

categories:
        type: fields
        fields:
          categories:
            type: structure
            label: Les categories
            fields:
              categories:
                label: Categorie
                type: multiselect
                min: 2
                max: 4
                required: true
                options:
                  design: Design
                  architecture: Architecture
                  photography: Photography
                  3d: 3D
                  web: Web

Here a screencast to illustrate: https://jumpshare.com/s/fr23aB5SGay8xZhvoF4P

No, in draft status, requirements are not evaluated. This only happens once you try to publish a page. Should be the same as for other fields not nested inside a structure.

Ok thanks for the clarification :slight_smile: