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.

Comments

abdulFarooqui created an issue. See original summary.

montesajudy’s picture

I'm having the same issue. Did you manage to find a solution?

hardik_patel_12’s picture

Patch mentioned in https://www.drupal.org/project/webform_content_creator/issues/3218044#co... is working in my case for the multivalue text field.

angelamnr’s picture

I'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.

angelamnr’s picture

Title: Multivalued Link Field is not populating » Multivalued Link and Text Field is not populating
Version: 2.0.2 » 3.x-dev
angelamnr’s picture

Status: Active » Needs review
angelamnr’s picture

Found 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.

angelamnr’s picture

That last fix wasn't quite right. This patch fixes the issue with an empty link field.

angelamnr’s picture

Forgot a line in the last patch so this is really the working version.

joaomarques736’s picture

Version: 3.x-dev » 4.x-dev
joaomarques736’s picture

Status: Needs review » Fixed
joaomarques736’s picture

Hello abdulFarooqui and angelamnr,

The patch is already applied in the new version (4.0.4). Thanks.

Best regards!

joaomarques736’s picture

Status: Fixed » Closed (fixed)