Closed (fixed)
Project:
Webform
Version:
8.x-5.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
26 Jan 2017 at 17:51 UTC
Updated:
21 Feb 2017 at 23:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mmaciusowicz-rr commentedComment #3
jrockowitz commentedI can't replicate the issue because the empty 'Other' text field is triggering validation. See below
I have also attached my test form.
Can you please provide the steps required to replicate the issue with a "simple" exported form that duplicates the issue.
BTW, I think the issue/bug is that the server-side validation handler for the select other element is not being triggered on your form.
Comment #4
jrockowitz commentedAre you able to reproduce the problem using https://simplytest.me/project/drupal/8.2.x?add[]=webform?
Comment #5
CatherineOmega commentedOkay, I can't reproduce "_test_", but I can get it to dump the field object into the "other" textfield, which I THINK is the same issue. Maybe.
Here's how to reproduce:
1. On simplytest, create a new webform.
2. Populate it with the attached YAML file.
3. View the form.
4. Fill a value for "other" at the bottom of the first page.
5. Click 'Next Page'.
6. Check "Yes".
7. See the "other" field full of this: "webform_checkboxes_other, Select the testtest program which applicant 2 participated in, Array, test--applicant_2_testtest_program, applicant_2_testtest_program, additional_applicants_disclaimer, , 2, 1, test, , , 0.001, before, after, edit-applicant-2-testtest-program"
Now, that's an "or other" field inside a conditional field. I CAN get it to do the same thing, overwriting the stored value, in one on the front page, but it seems to involve a lot of back and forth and saving drafts and going to other pages and back in, so I haven't been able to reproduce yet.
Comment #6
CatherineOmega commented"Wow, your form's kind of big, Catherine," you might say. And yes, guess what it did to my php log?
[01-Feb-2017 17:05:10 America/Vancouver] Uncaught PHP Exception Drupal\Core\Entity\EntityStorageException: "SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'value' at row 74: INSERT INTO {webform_submission_data} (webform_id, sid, name, property, delta, value) VALUES (And 400 lines of values later:
Comment #7
jrockowitz commentedI have isolated at least one error/issue...
The below elements...
...throws...
I will look into this problem.
Comment #8
jrockowitz commentedComment #10
jrockowitz commentedComment #11
jrockowitz commentedI pinpointed the issue to validation problems with hidden elements containing empty other values.
Comment #14
jrockowitz commentedComment #17
jrockowitz commentedComment #20
jrockowitz commentedComment #22
jrockowitz commentedSince all the test are no passing, I committed the patch.
Please checkout or download the latest dev release to review.