In the value field of the <options>, change the commas to pipes (or
something else). Now you get a comma-delimited list of values that have
pipes instead of commas. Change them back on a per-item basis.
HTH.
--Ben
Daniel Kessler wrote:
> I have a form drop-down where multiple items can be selected. The
> list has an item with commas in it, so I changed it to be delimited
> via a pipe character.
> <cfset sp_array=
> ListToArray("All|Children/Youth|Seniors/Elderly|Community Centers,
> Services, and Activities|Other","|")>
> This works great and creates an array that I use to populate the drop-down.
>
> Since the drop-down allows multiple selections, it returns an list of
> selected values, but they are comma delimited. So now when I do
> ListToArray(Form.service_population,"|"), it doesn't have the pipe
> and treats it all as one value. When I do it without the additional
> delimiter designation, it breaks up "Community Centers, Services, and
> Activities" into 3 items as expected. I need to make this into an
> array like the sp_array, but am not sure how to approach this.
>
> I have thoughts, but none that are very good choices.
>
> thanks.
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191942
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54