Gossamer Forum
Quote Reply
Multi-Select Global...
I had a look through here a second ago, for a global that would join the contents of a multi-select field, and seperate them with a comma. This is what I came up with;

Code:
sub {
my $tags = shift;
my @cut = split(/\n/, $tags->{AVS});
my $send_back = join(', ', @cut);
return $send_back;
}

Change 'AVS' to whatever the name of your array field is (.i.e as mutliselect field is stored as an array).

Any enhancements people want to make to it, feel free; oh, and enjoy Smile

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Multi-Select Global... Andy 2113 Dec 18, 2002, 8:16 AM
Thread Re: [Andy] Multi-Select Global...
Paul 1996 Dec 18, 2002, 8:23 AM
Post Re: [Paul] Multi-Select Global...
Andy 1975 Dec 18, 2002, 8:27 AM