11

I have a multiselect picklist on a record. I want to display its current values in a multiselect picklist in a visual flow. But when I tried setting the value of the picklist to a variable and setting that as the default value in the multiselect picklist, I got "one; two", as opposed to "one" and "two" on separate lines. Has anyone come up with a way of doing this?

  • Best I can come up with is putting the current values above the multiselect picklist field and leaving the default blank. Then telling the user to only put in new selections if there is a change. Then only write the picklist if it is not empty. – Eamon Aug 11 '14 at 6:23
1

Based on the documentation, it seems to be normal to get this string containing a series of attributes delimited by semicolons.

Multi-select picklist fields contain a list of one or more items from which a user can choose multiple items. One of the items can be configured as the default item. Selections are maintained as a string containing a series of attributes delimited by semicolons. For example, a query might return the values of a multivalue picklist as “first value; second value; third value”.

http://www.salesforce.com/us/developer/docs/api/Content/field_types.htm#i1435691

| improve this answer | |
  • 1
    unfortunately when you feed this into a multiselect picklist in a flow, it appears as a string with semicolons, not as separate items on each line. At the moment, I am trying to figure out if there is a way to pragmatically populate the already selected values, but any HTML code I attempt to put into the picklist is stripped off before the user see it (I tried changing "one; two" to "one<BR>two" and a few other combinations without success. – Eamon Aug 8 '14 at 8:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.