+ Reply to Thread
Results 1 to 3 of 3

Thread: Problem with multiple SELECTS and Web to Lead

  1. #1
    BillKat is offline Junior Member
    Join Date
    Jun 2009
    Posts
    6

    Problem with multiple SELECTS and Web to Lead

    Hi folks,

    First off thanks to Mike for this resource, great stuff ...

    I've asked this in the SF board but it seems very slow in there, hope it's OK to ask here too.

    I have a form scratch-built in PHP, which 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 to SF Web to Lead.

    This works fine if I send a single value e.g. &field=fish
    All is good in SF Leads, on editing the field, the value is removed from the list on the left and shown on the right.

    But if I try a separated list, it doesn't work. e.g. &field=fish;banana

    In the Lead record, this displays as fish;banana
    When you edit the field, that string is shown in the right hand box, and the two values remain in the list in the left.

    I've tried variations but I'm getting nowhere fast ... any ideas would be much appreciated,
    Cheers
    Bill

  2. #2
    BillKat is offline Junior Member
    Join Date
    Jun 2009
    Posts
    6
    In case anyone's interested I figured it out, thanks to an old post from Steve415 on the SFDC board.

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

    Instead I had to iterate and split the values like this in the POST string:

    $post_string .= "&the_field=value1
    $the_field=value2
    $the_field=value3";

    Now works fine, the values in the multi-pick list are taken up correctly in Leads.

  3. #3
    mike's Avatar
    mike is offline Administrator
    Join Date
    May 2007
    Location
    Wylie, Texas
    Posts
    557
    Blog Entries
    15
    Thanks bill for the post! Any information helps

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO 3.5.1