Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a 'Limit' option for List Fields #956

Closed
ItsMeAra opened this issue Feb 3, 2017 · 2 comments
Closed

Add a 'Limit' option for List Fields #956

ItsMeAra opened this issue Feb 3, 2017 · 2 comments
Assignees

Comments

@ItsMeAra
Copy link

ItsMeAra commented Feb 3, 2017

When using The List Field it would be nice to be able to set a limit on the number of Items that can be added through the admin. For example, I tried limit: 1 but didn't do anything, still allows unlimited items.

header.hero_button:
  name: button
  type: list
  label: Button
  limit: 1  # <~ this would be great!
  fields:
    .text:
      type: text
      label: Button Text
      validate:
        required: true
    .url:
      type: text
      label: Button URL
      validate:
        required: true
    .theme:
      type: select
      label: Button Color
      options:
          1: 'Blue'
          0: 'Green'

Discovered in Slack chat that this is not a current feature. Would be nice to add. 😄

@dimitrilongo
Copy link

Same here #720

@w00fz
Copy link
Member

w00fz commented May 9, 2017

Fixed in #1113, thanks @david-szabo97

@w00fz w00fz closed this as completed May 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants