BoldMinded acquires Ansel, support ending for all add-ons. BoldMinded acquires Ansel, support ending for all add-ons. Read More →
Support has been discontinued. Issues remain available as an archive. Support has been discontinued. Issues remain available as an archive.
Grid error when adding two images to one grid row
#94 opened by kbeick
Description
I have a grid made up of two Ansel fields. The grid is not required, but each of the two images is required per row (min and max = 1). Title, caption, and featured options are turned off.
When I add the first image, I get an error: "There was a problem with one or more Grid fields". I add the second image; no new error for the second Ansel image but the first error stays the same, preventing me from saving. If I then delete the first image and re-add it, that first error goes away and I'm able to save.
Replies
- TJ Draper
Replied 4/7/2018 1:04 PM, Edited 11/10/2018 9:54 AM
Hi, sorry for the delay. I am able to duplicate this issue and I'm 99% certain this is a Grid problem and not an Ansel problem. I have opened a thread on the EE forums about it: https://expressionengine.com/forums/topic/251210/grid-field-validation-with-ansel
- kbeick
Replied 4/17/2018 5:35 PM, Edited 11/10/2018 9:54 AM
Hi TJ,
Following up on this one, after EE released 4.2.0. My initial bug has been resolved, but now the ansel fields within my grid row aren't respecting the REQUIRED field. I have a grid with zero or one rows. The grid is not required. The grid row has two ansel fields, each of which are required. But the requirement isn't being enforced in the entry form in the control panel.
- TJ Draper
Replied 5/12/2018 1:49 PM, Edited 11/10/2018 9:54 AM
I have been unable to reproduce the requirement not being met in the latest version of EE.
- kbeick
Replied 5/16/2018 3:12 PM, Edited 11/10/2018 9:54 AM
I'm in EE 4.2.2 and using Ansel 2.1.5 and I'm still having this problem. To confirm you're reproducing my setup, I have:
- a field of type grid
- required? no
- search? no
- hide? no
- min rows: 0
- max rows: 1
- Two grid fields therein, both:
- required? yes
- search? no
- max quantity: 1
- prevent upload when max quantity reached? yes
With that set up, when I add a row to in the entry editor I expect to be required to add images to both ansel grid fields. However, there's no requirement enforced. I can fill zero, one, or two of the ansel fields.
You're not experiencing this? You are indeed required to fill both ansel fields within the grid row?
- a field of type grid
- TJ Draper
Replied 5/16/2018 4:12 PM, Edited 11/10/2018 9:54 AM
Sorry, the image in my previous update seems to have failed. With those settings, I am not experiencing this issue. Here is the image: https://www.dropbox.com/s/pjsqq58p6qkswli/unable-to-duplicate.png?dl=0