Answers.Body: <p>Currently, the <a href="https://docs.solspace.com/craft/freeform/v3/overview/element-connections.html" rel="nofollow noreferrer">Element Connections</a> feature requires that a Freeform array field be mapped to a Craft field that also accepts an array (e.g. Freeform Checkbox Group to Craft Checkboxes).</p>
  <p>I've made a note about this for us to revisit in the future though, and potentially add a transformer to handle this kind of mapping. :)</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-19T15:23:42.930Z
Answers.Text: Thanks. Good to know. And now that I do I can manage the mapping in future with a more appropriate field.
Answers.UserDisplayName: Jonathan Schofield
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-19T05:48:31.327Z
Answers.LastActivityDate: 2021-05-19T05:48:31.327Z
Answers.UserDisplayName: Solspace
Body: <p>NB: this is <em>not</em> the same as <a href="https://craftcms.stackexchange.com/questions/31438/freeform-checkbox-group-field-only-returns-one-value">Freeform Checkbox Group Field only returns one value</a>, which was resolved by field name markup invoking an array: <code>name=&quot;fieldname[]&quot;</code>.</p>
  <p>I'm already doing that. And stored Freeform form submissions are respecting multiple values.</p>
  <p>My issue is that I am using <strong>Element Connections</strong> to map the form fields to other fields in the system which are assigned to user accounts.</p>
  <p>The receiving fields are multiline Plain Text fields and they are only receiving a single value.</p>
  <p>For example:</p>
  <p>For a Freeform checkbox group…</p>
  <pre><code>&lt;input name=&quot;group[0] type=&quot;checkbox&quot; value=&quot;val1&quot;&gt;
  &lt;input name=&quot;group[1] type=&quot;checkbox&quot; value=&quot;val2&quot;&gt;
  &lt;input name=&quot;group[2] type=&quot;checkbox&quot; value=&quot;val3&quot;&gt;
  </code></pre>
  <p>…that maps to user account field <code>userData2</code>.</p>
  <p>When all three checkboxes are checked:</p>
  <ul>
  <li>the Freeform <code>group</code> field stores a value of <code>val1, val2, val3</code></li>
  <li>but <code>userData2</code> only receives <code>val1</code>.</li>
  </ul>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-05-14T09:18:15.817Z
Comments.Text: Thanks for improving the tags, Brad :)
Comments.UserDisplayName: Jonathan Schofield
Tags: <plugin-freeform><solspace><array>
Title: Problem with truncated Freeform checkbox group value when mapped to another field
ThreadText: # Problem with truncated Freeform checkbox group value when mapped to another field
  
  (Asked by: username_0 on 2021-05-13)
  
  NB: this is *not* the same as [Freeform Checkbox Group Field only returns one value](https://craftcms.stackexchange.com/questions/31438/freeform-checkbox-group-field-only-returns-one-value), which was resolved by field name markup invoking an array: `name="fieldname[]"`.
  
  I'm already doing that. And stored Freeform form submissions are respecting multiple values.
  
  My issue is that I am using **Element Connections** to map the form fields to other fields in the system which are assigned to user accounts.
  
  The receiving fields are multiline Plain Text fields and they are only receiving a single value.
  
  For example:
  
  For a Freeform checkbox group…
  
  ```
  <input name="group[0] type="checkbox" value="val1">
  <input name="group[1] type="checkbox" value="val2">
  <input name="group[2] type="checkbox" value="val3">
  
  ```
  
  …that maps to user account field `userData2`.
  
  When all three checkboxes are checked:
  
  * the Freeform `group` field stores a value of `val1, val2, val3`
  * but `userData2` only receives `val1`.
  
  **Tags:** plugin-freeform, solspace, array
  
  > **Comments:**
  > **username_0**: Thanks for improving the tags, Brad :)  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-05-19. Score: 2
  
  Currently, the [Element Connections](https://docs.username_1.com/craft/freeform/v3/overview/element-connections.html) feature requires that a Freeform array field be mapped to a Craft field that also accepts an array (e.g. Freeform Checkbox Group to Craft Checkboxes).
  
  I've made a note about this for us to revisit in the future though, and potentially add a transformer to handle this kind of mapping. :)
  
  > **Comments:**
  > **username_0**: Thanks. Good to know. And now that I do I can manage the mapping in future with a more appropriate field.  
  
  ---
  
  