maxItems not working

Greetings.

I’m using the version 3.4.11.

In my project, there is a mixin that comes handy in several Tailor blueprints, something like this:

uuid: 3dba16b6-10c0-46ff-bbb9-75e0180f8ffc
handle: Content\Tagging
type: mixin
name: Tagging

fields:
   level:
        tab: Meta Data
        label: Level
        type: entries
        source: Content\Level
        maxItems: 1
        validation:
                    -required
   main_topic:
        tab: Meta Data
        label: Main Topic
        type: entries
        source: Content\MainTopic
        displayMode: taglist
        maxItems: 2 
        validation:
                    -required
   sub_topic:
        tab: Meta Data
        label: Sub Topic
        type: entries
        source: Content\SubTopic
        displayMode: taglist
        maxItems: 5 
        validation:
                    -required

Regarding the previous definitions, there is a problem with the main_topic and sub_topic fields when testing the UI: The maxItems property is not working. I can add as many tags as I want without any restrictions.

Your suggestions will be appreciated.

The taglist form widget doesn’t support maxItems, so it doesn’t apply the restriction. We’ve marked this as a known issue.

Hey @jeraso

The maxItems support has been included in v3.7.2

Best regards

1 Like

That’s good news. Thanks.

1 Like