Altinn / app-frontend-react

Altinn application React frontend
BSD 3-Clause "New" or "Revised" License
14 stars 24 forks source link

Allow dynamic expressions in "maxCount" for Repeating groups #2069

Open CelineTrammi opened 2 weeks ago

CelineTrammi commented 2 weeks ago

Description

For a repeating group, sometimes the maximum number of elements are 1 and sometimes they are unlimited. I would love to have a feature to add this logic directly to the component

"maxCount": [
    "if",
    [
        "equals",
        ["dataModel", "only1choice"],
        true,
    ],
    1,
    "else",
    999
],

Additional Information

No response