RT has a callback to change what component is used to edit/display a CF. I wrote a callback that made it easy to override the component to be used for a specific CF.<br><br>Here is the callback:<br><br>$ cat /opt/rt3/local/html/Callbacks/my_company/Elements/EditCustomField/EditComponentName<br>
<br><%INIT><br>return unless $CustomField;<br><br>if ( $CustomField->FriendlyPattern =~ /\WTime\W/ ) {<br>    $$Name = $m->callers(1)->dir_path . "/CustomFields/TimePicker";<br>    return;<br>}<br>
<br>my<br>$Comp = $CustomField->Name;<br>$Comp =~ s/\W/_/g;<br>$Comp = $m->callers(1)->dir_path . "/CustomFields/EditCF_$Comp";<br><br>$$Name = $m->comp_exists($Comp.$CustomField->id) ? $Comp.$CustomField->id<br>
       : $m->comp_exists($Comp)                  ? $Comp<br>       : $$Name;<br></%INIT><br><%ARGS><br>$Name<br>$CustomField => undef<br>$Object => undef<br></%ARGS><br><br>With that in place I can just drop a new component in the right place to get the desired behavior. Here is one what does what you want:<br>
<br>$ cat /opt/rt3/local/html/Elements/CustomFields/EditCF_Change_Description<br><br><& /Elements/EditCustomFieldText, %ARGS, Rows => 10, Cols => 40 &><br><br><br>This is handy for all sorts of things.<br>
<br>-Todd<br><br><div><span class="gmail_quote">On 2/7/08, <b class="gmail_sendername">Kenneth Crocker</b> <<a href="mailto:KFCrocker@lbl.gov">KFCrocker@lbl.gov</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
To all,<br><br><br>        My turn!!!  Awhile back, I asked about how to increase the size of a<br>custom Field I defined as "Fill in one text area". It all works fine,<br>but the size is like really, really, really small. I wanted to make the<br>
box (where the user would type his stuff) much bigger. I was told to<br>change the size of "RT::MessageBoxWidth. I did. I made it<br>"Set($MessageBoxWidth , 180);" and when I bounced RT, the box doesn't<br>
look any different. I created a ticket and when I typed info in the<br>field, same small box and look. Sooooooo, does anyone have a solution to<br>that one? I would greatly appreciate it. Thanks.<br><br><br>Kenn<br>LBNL<br>
<br>_______________________________________________<br><a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users</a><br><br>Community help: <a href="http://wiki.bestpractical.com">http://wiki.bestpractical.com</a><br>
Commercial support: <a href="mailto:sales@bestpractical.com">sales@bestpractical.com</a><br><br><br>Discover RT's hidden secrets with RT Essentials from O'Reilly Media.<br>Buy a copy at <a href="http://rtbook.bestpractical.com">http://rtbook.bestpractical.com</a><br>
</blockquote></div><br>