Custom Field select boxes erroneously displayed as multi-select...?

Hi folks,

I have a bunch of custom field select box popups, (a single selection from
several possible pre-defined values), and they all display like multi-select
popups. The point is they look like multi-select popups, even though the
behaviour is correctly single-select. What I am looking for is a way to
force these select popups to look like single-select popup menus. Is there
an obvious switch somewhere which defines this (currently incorrect) display
behaviour, which I’m missing, does anyone know, please? TIA.

Richard Foley
Ciao - shorter than aufwiedersehen

Richard,

I have some code that some generous person on this list gave me for 

turning “Select” CF’s into drop-down boxes. Would that help?

Kenn
LBNLOn 3/26/2009 5:21 AM, Richard Foley wrote:

Hi folks,

I have a bunch of custom field select box popups, (a single selection from
several possible pre-defined values), and they all display like multi-select
popups. The point is they look like multi-select popups, even though the
behaviour is correctly single-select. What I am looking for is a way to
force these select popups to look like single-select popup menus. Is there
an obvious switch somewhere which defines this (currently incorrect) display
behaviour, which I’m missing, does anyone know, please? TIA.

Hi Ken,

Yes please, that sounds perfect :slight_smile:

Richard Foley
Ciao - shorter than aufwiedersehen

Richard,

I have some code that some generous person on this list gave me for 

turning “Select” CF’s into drop-down boxes. Would that help?

Kenn
LBNL

Hi folks,

I have a bunch of custom field select box popups, (a single selection from
several possible pre-defined values), and they all display like
multi-select
popups. The point is they look like multi-select popups, even though the
behaviour is correctly single-select. What I am looking for is a way to
force these select popups to look like single-select popup menus. Is
there
an obvious switch somewhere which defines this (currently incorrect)
display

Hi folks,

I have a bunch of custom field select box popups, (a single selection from
several possible pre-defined values), and they all display like multi-select
popups. The point is they look like multi-select popups, even though the
behaviour is correctly single-select. What I am looking for is a way to
force these select popups to look like single-select popup menus. Is there
an obvious switch somewhere which defines this (currently incorrect) display

I’ll quibble with “incorrect” - Though I’d be very happy if this were
per-field settable.

share/html/Elements/EditCustomFieldSelect is the file you want.
and you’re looking for the size= bit

Richard,

I was given the following code to modify the way Custom Fileds are 

presented:

To modify the way certain Custom Fields are set up for entering data,

the following code should be added after line #76 and before the

last “return”

command in the directory

/$RTHOME/rt-3.6.4/local/html/Elements/*EditCustomField

if ($Type eq “Text”)
{
$Rows = 8;
$Cols = 50;
}
elsif ($Type eq “Wikitext”)
{
$Rows = 8;
$Cols = 50;
}
elsif ($Type eq “Select” and $MaxValues == 1)
{
$Rows = 1;
$Cols = 30;
}

Hope this helps.

Kenn
LBNLOn 3/26/2009 10:37 AM, Richard Foley wrote:

Hi Ken,

Yes please, that sounds perfect :slight_smile:

Hi Ken,

That did it (perfect) thanks very much indeed!

I’ll quibble with “incorrect” - Though I’d be very happy if this were
per-field settable.

I concede on your quibble, although it would seem like a useful
changable “default” setting on the customField creation page.

Patch anyone ?-)

Richard Foley
Ciao - shorter than aufwiedersehen

One, Two, Free! – Richard Foley Thursday 26 March 2009 19:52:09 Ken Crocker wrote:

Richard,

I was given the following code to modify the way Custom Fileds are 

presented:

To modify the way certain Custom Fields are set up for entering data,

the following code should be added after line #76 and before the

last “return”

command in the directory

/$RTHOME/rt-3.6.4/local/html/Elements/*EditCustomField


if ($Type eq “Text”)
{
$Rows = 8;
$Cols = 50;
}
elsif ($Type eq “Wikitext”)
{
$Rows = 8;
$Cols = 50;
}
elsif ($Type eq “Select” and $MaxValues == 1)
{
$Rows = 1;
$Cols = 30;
}

Hope this helps.

Kenn
LBNL

On 3/26/2009 10:37 AM, Richard Foley wrote:

Hi Ken,

Yes please, that sounds perfect :slight_smile: