function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
billkatbillkat 

Multiple SELECT / picklist, to Web to Lead

Hi folks,

 

I have a form scratch-built in PHP. It has a couple of multiple SELECTs in, and the results don't get properly posted into Leads.

 

I'm pre-processing the form in PHP and cURLing a string across.

 

If I send a single value, it works. e.g. &blah=fish

 

This works fine in Leads, on editing the field the value is removed from the list on the left and shown on the right.

 

 

If I try a separated list, it doesn't work. e.g. &blah=fish;banana

 

In the Lead record, the latter displays as "fish;banana".

When you edit the field, that string is lso shown in the right hand box, and the two values remain in the list in the left.

 

Any ideas would be appreciated,

Thanks all.

billkatbillkat

Figured it out thanks to a post from Steve415 on here.

 

Sending as "value1;value2" doesn't work. i.e. implode(";", $array) or join() doesn't work.

 

Had to split the values like this in the POST string, oddly:

 

$post_string .= "&the_field=value1

$the_field=value2

$the_field=value3";

 

Now works fine.