Not able to post data to multi-select fields

Created on 20 May 2021, about 3 years ago
Updated 3 August 2023, 11 months ago

Problem/Motivation

When you try to post a multi-value webform field to a multi-select field in Pardot, the value does not sync at all. This is because Guzzle/PHP encodes the array values with [] notation, e.g. ['foo' => ['bar', 'baz']] is encoded like foo[0]=bar&foo[1]=baz

Steps to reproduce

Add a webform "checkboxes" field that syncs to a pardot multi-select picklist, check multiple values in the webform, and submit. The checked values are not posted to Pardot.

Proposed resolution

Pardot expects multi-select values to be sent without [] notation, e.g. ['foo' => ['bar', 'baz']] should be encoded like foo=bar&foo=baz

πŸ› Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States wxactly

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024