[rt-users] Custom field textarea too small

Ken Crocker kfcrocker at lbl.gov
Tue Jan 12 13:36:24 EST 2010


Matt,

I'm not sure if the same line numbers apply for 3.8.x, but this is what 
we dod for 3.6.4:

#
#   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 /apps/rt/rt-[x.x.x]/local/html/Elements:
#

    * *"EditCustomField"* -- Additional code after line #76*:*

*# Beginning of Override Code ===============*
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;
}

*# End of Override Code*

This code allows the entry "box" to be much larger and easier to use. 
I'm not sure if this is what you were referring to, but I hope it helps.

Kenn
LBNL

On 1/11/2010 11:25 PM, Emmanuel Lacour wrote:
> On Mon, Jan 11, 2010 at 10:44:15PM -0700, Matt Adams wrote:
>   
>> Folks:
>>
>> I've created a custom field for a static description we'll use on some 
>> of our project-related tickets.  Unfortunately the textarea is so small 
>> as to be almost useless.
>>
>> Is there anything that can be easily done make this field more accessible?
>>
>>     
>
> You can modify share/html/Elements/EditCustomField (copy it in
> local/html/Elements/ before) and change Cols (5) and Rows (15), but that
> will be for all customfield of type textarea.
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
> Buy a copy at http://rtbook.bestpractical.com
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100112/6d359558/attachment.htm>


More information about the rt-users mailing list