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

Select field should allow max_items #1771

Closed
jasonvarga opened this issue Apr 30, 2020 · 0 comments
Closed

Select field should allow max_items #1771

jasonvarga opened this issue Apr 30, 2020 · 0 comments

Comments

@jasonvarga
Copy link
Member

jasonvarga commented Apr 30, 2020

The select fieldtype should allow max_items: n, similar to relationship fieldtypes.

Right now you can do multiple: true, but you can't set a limit (except manually using validate: 'max:n')

Rather than replace multiple with max_items, we can probably just allow both.

Like multiple: true could assume max_items: infinity
and setting max_items: 3 would assume multiple: true
and if you do both... good for you for being explicit.

This will help simple v2 suggest fields to be migrated over to v3 select fields.

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

1 participant