Problem/Motivation
I have a link field (with title and URL). This field accepts multiple values on the webform. I have created a mapping with a matching field in the bundle, that allows multiple values for link with both title and link.
Multiple link values entered by users in the web form do not get populated in the node.
Steps to reproduce
Create a new content type.
Create a link field with storage settings to allow unlimited values.
Create a web form. Add a link element that allows multiple values.
Create the webform content creator configuration and map the form to content type and link form element to the link field.
Test the form.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | interdiff_4_9.txt | 1.3 KB | angelamnr |
| #9 | 3233576-9-multivalued-link-and-text-field-mapping.patch | 2.63 KB | angelamnr |
| #8 | interdiff_4_8.txt | 1.42 KB | angelamnr |
| #8 | 3233576-8-multivalued-link-and-text-field-mapping.patch | 2.61 KB | angelamnr |
| #7 | interdiff_4_7.txt | 1.42 KB | angelamnr |
Comments
Comment #2
montesajudy commentedI'm having the same issue. Did you manage to find a solution?
Comment #3
hardik_patel_12 commentedPatch mentioned in https://www.drupal.org/project/webform_content_creator/issues/3218044#co... is working in my case for the multivalue text field.
Comment #4
angelamnr commentedI'm also running into this issue on 3.x. The patch in https://www.drupal.org/project/webform_content_creator/issues/3218044#co... doesn't fix this issue on 3.x, unfortunately, because the code has been refactored a bit and that function has moved. My patch incorporates that fix into 3.x. The scope is a bit weird and I'm not entirely sure where I should post the patch, since these two issues overlap. However, the attached patch should fix the multivalue text and link field issues so I am posting it on this ticket.
Comment #5
angelamnr commentedComment #6
angelamnr commentedComment #7
angelamnr commentedFound that the previous patch would give a warning if you submitted an empty value in a link field without a title. Attached is a new patch that fixes that issue.
Comment #8
angelamnr commentedThat last fix wasn't quite right. This patch fixes the issue with an empty link field.
Comment #9
angelamnr commentedForgot a line in the last patch so this is really the working version.
Comment #10
joaomarques736 commentedComment #11
joaomarques736 commentedComment #12
joaomarques736 commentedHello abdulFarooqui and angelamnr,
The patch is already applied in the new version (4.0.4). Thanks.
Best regards!
Comment #13
joaomarques736 commented