Gossamer Forum
Home : Products : DBMan : Customization :

Multiple Select Field

Quote Reply
Multiple Select Field
I installed the multiple select mod, works great. The selections are seperated by a pipe symbol. How do I change this to a comma?


Thanks

Sean

Quote Reply
Re: Multiple Select Field In reply to
In html_record_long, after:

my (%rec) = @_;

Add:

$rec{'FieldName'} =~ s/\|/, /g; ## remove pipe from display

This will replace the pipe with a comma and add a space after the comma.

Hope this helps

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: Multiple Select Field In reply to
Thanks Lois, that was perfect.

Sean

Quote Reply
Re: Multiple Select Field In reply to
What were to happen if one of the fields had a comman in it?

Michael DeLong
Quote Reply
Re: Multiple Select Field In reply to
Then you would not want to replace the delimiter with a comma.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Multiple Select Field In reply to
That's what I thought - thanks.