When I create a multi-value textfield I get "Array" in the first box.
It happens regardless of whether the number of additional fields is limited or not. See attached screenshots.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | Webform_multivaluefield.png | 27.21 KB | prashant.c |
| #7 | text_field_with-2864411-7.patch | 854 bytes | jrockowitz |
| #5 | text_field_with-2864411-5.patch | 1.03 KB | jrockowitz |
| #4 | webform.webform.textfield_multiple.yml | 2.59 KB | stella |
| #2 | webform.webform.textfield_multiple.yml | 2.41 KB | jrockowitz |
Comments
Comment #2
jrockowitz commentedI can't duplicate this issue. Attached is the test form I created attempting to duplicate the problem.
Comment #3
stella commentedHmmm odd, I can't reproduce it with your form either... i'll see if i can figure it out
Comment #4
stella commentedOk as best as I can figure out, it happens when it is a required field and it appears on a step other than the first step in a multistep form. Form config attached (I love CMI!)
Comment #5
jrockowitz commentedI am crossing my fingers, that the attached patch will solve the problem.
Comment #7
jrockowitz commentedComment #8
jrockowitz commented@stella please review and confirm that this patch works. Thanks.
Comment #9
prashant.c@stella
PFA I could not reproduce the issue with textfield for multiple values.
Can you please list down the steps to re-generate this issue ?
Comment #10
jrockowitz commented@Prashant.c The form from #4 reproduces the issue.
The issue is that a required multiple value element within a multistep form is not maintaining its #default_value correctly.
Comment #11
stella commented@jrockowitz yep! that works perfectly, thanks!
Comment #13
jrockowitz commented