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

List widget required not working #5381

Open
miguelt1 opened this issue May 13, 2021 · 3 comments
Open

List widget required not working #5381

miguelt1 opened this issue May 13, 2021 · 3 comments
Labels
area: extensions/widgets/list type: bug code to address defects in shipped code

Comments

@miguelt1
Copy link

miguelt1 commented May 13, 2021

Describe the bug
A list with required field set to true and not detected when post save

To Reproduce
Steps to reproduce the behavior. For example:

  1. Have a list widget like this one:
    - { label: 'Gallery', name: 'galleryImages', widget: 'list', summary: '{{field.image}}', required: true, collapsed: false, min: 1, field: { label: Image, name: image, widget: image, required: true }, }
  2. Click on Save
  3. Not detecting the required field and allow to save the post

Expected behavior

When save the post and this list widget is empty should show a red border like it happens with a text field for example and not allow to save if it's empty

@miguelt1 miguelt1 added the type: bug code to address defects in shipped code label May 13, 2021
@erezrokah
Copy link
Contributor

erezrokah commented May 13, 2021

Hi @miguelt1, can you please follow the format of the issue template https://github.com/netlify/netlify-cms/issues/new?assignees=&labels=type%3A+bug&template=bug_report.md&title=Please+replace+with+a+clear+and+descriptive+title

That makes it much easier for the maintainers to understand the issue you're experiencing

@miguelt1
Copy link
Author

@erezrokah edited

@patagoniapy
Copy link

Also having this same issue, for reference.

leomp12 added a commit to ecomplus/cloud-commerce that referenced this issue Dec 27, 2024
…dget as maybe undefined

Bug of DecapCMS with required lists decaporg/decap-cms#5381
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: extensions/widgets/list type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

3 participants