- Issue created by @dmezquia
- πͺπΈSpain espurnes
Hello,
same issue here. It seems related to the step where the image field is placed.I have an image field with up to 6 allowed values (cardinality).
On a form with 3 steps:
- if the image is placed on first step it works ok, it displays just one input image
- if the image is placed on second step, it displays two inputs
- if the image is placed on third step, it displays three inputs
If I create a fourth step and I move the image field to that step, I get 4 image inputs.
- Status changed to Needs work
8 months ago 9:28am 14 March 2024 - πΊπΈUnited States jvogt Seattle, WA
To add to this, it seems like using the Back button sort of resets the count. In my form with the file upload on the fifth step, the following happens:
- Click Next 4 times. 5 upload inputs are displayed on the fifth page.
- Click Back once. Click Next once. 2 upload inputs are displayed.
- Click Back twice. Click Next twice. 3 upload inputs are displayed.
- πΊπΈUnited States jvogt Seattle, WA
This proposed patch to the core FileWidget fixed the issue for me: https://www.drupal.org/project/drupal/issues/3276280 π File widget with multiple values may duplicate empty items Needs work