[rt-users] Special Custom Field Display/Edit - Suggestions?

Stan Sawa stanislaw.sawa at uk.clara.net
Thu Nov 1 06:50:29 EDT 2007

On Tue, 30 Oct 2007 11:51:34 -0400
"Todd Williams" <willir70 at gmail.com> wrote:
> Has anyone done anything similar to this?  Can anybody offer some
> pointers, ideas, or thoughts?  Any suggestions would be greatly
> appreciated.

we are currently implementing something like this (that is special
customfield with customised editor viewer). Approach, which seems to
work quite fine is adding new type of custom field (which will be used
only in one cf, but it gives us nice separation of code):

% cat local/lib/RT/CustomField_Local.pm 
no warnings qw/redefine/;
package RT::CustomField;

$FieldTypes{ClCustID} = [
    'Select multiple customers',
    'Select one customer'

then, we create/add custom field to queue(s). As rt is using custom
field type for selecting which widget/componenet, so it is using:


they were created based on one of default ones, with added additional
'helper' dropdowns and searches. They use some javascript/async
requests to fetch data from other systems and modify existing controls.
The only thing you have to keep in mind is that the value stored in
customfield is the one which is passed in
'<%$NamePrefix.$CustomField->Id%>-Value' field of form, so you have to
make sure it is filled with correct value.

Hope it helps.

Stanislaw Sawa

More information about the rt-users mailing list