Closed (fixed)
Project:
Field Config Cardinality
Version:
4.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Jan 2021 at 18:36 UTC
Updated:
9 Aug 2025 at 00:49 UTC
Jump to comment: Most recent


Comments
Comment #2
rpayanmI could fix it with this code:
Comment #3
devkinetic commentedDo you have any more information as to why this is happening?
Comment #4
chikeI just encountered this issue with an image field using Drupal 9.5.11. field_config_cardinality settings on the image field are ignored by the site.
Comment #5
zviryatko commentedAdded next widget that replaces original one.
and alter original:
The tricky thing is that ImageWidget and FileWidget has complex form that depends on cardinality, so there are now easy way to change it.
Comment #6
smustgrave commentedCan you confirm is still experiencing this?
Comment #8
er.garg.karanI confirm that this issue is still there even in 4.0.0 version.
@zviryatko, I am using your provided code. But it right now throws a lot of warnings because your code works even for single image fields too. We need it to work only for multiple image fields.
Comment #11
tim-diels@er.garg.karan , you opened a MR for 4.0.x but the branch is still 3.0.x. Can you please update that? I'm not able to do it for you...
Comment #12
tim-dielsComment #16
smustgrave commented