Creating new CF type

Hi!
Can somebody point me - how to create new CF type, like “Select multiple
values”?
I have RT 3.4.2 on redhat FC3 and i’m trying to create new CF type for
storing URL (in the name i plan to have Name and in the description the
URL for this name).
I create new type in CutomField_Overlay.pm

%FieldTypes = (
Urlcf => [
‘Select multiple URLs’, # loc
’Select one URL’, # loc
’Select up to [_1] URLs’, # loc
],

and create two new Elements:
EditCustomFieldUrlcf and ShowCustomFieldUrlcf (just like a copy from
EditCustomFieldSelect and ShowCustomFileldSelect)
but it dosn’t help :frowning:
Can ypu point me right way to define new CF type
Thanks a lot.

with best wishes
German Aksenov

GAksenov@imbank.ru wrote:

Can somebody point me - how to create new CF type, like “Select multiple
values”?
I have RT 3.4.2 on redhat FC3 and i’m trying to create new CF type for
storing URL (in the name i plan to have Name and in the description the
URL for this name).

Is there a reason you can’t just use a Select multiple CF for your
purposes? I’m not sure why there’s a need to create a new CF type for
this…

Cheers,
Tom

I want to have the CF where user can select one (or multiple) value (just
like ‘select one value’ CF), but in the ticke display mode users can click
on this field and go to corresponding URL (like in the Links)

with best wishes
German Aksenov
I

My goal - add field that is easy to understand for ordinary users and what
contain a link to some static asset (in the assets tracker).
imho it’s hard to understand that some URL mean (when only URL in CF) and
very hard to remember all links in case then new ticket created.

Thanks

with best wishes
German Aksenov
International Moscow Bank
phone: (095)258-7258 ext. 2617

I want to have the CF where user can select one (or multiple) value (just
like ‘select one value’ CF), but in the ticke display mode users can click
on this field and go to corresponding URL (like in the Links)

with best wishes
German Aksenov
I

I wouldn’t create a new CF type. I would just alter the
CF display component to recognize a URL and turn it into
a hyperlink. You are making it harder than necessary.

-Todd

I have already did it. :wink:
may be it is not optimal solution, but now i have new CF 'Select one URL’
and 'Select multiply URL’
the administarot fill in the Name and Description (URL) and users can
select field and click on it in display mode.

with best wishes
German Aksenov
International Moscow Bank
phone: (095)258-7258 ext. 2617

the reason is: if i already have defined asset in AT system. i the real
life i need only make some changes in it (patch installed, disk replaced,
etc) and url link to this asset will be static.
for RT system I have CF field with list of assets and then users will
create ticket they will link it with asset (by selecting value) and
understand the mean by the value (not url).
I think the Name is more comfortable for users then URL.

with best wishes
German Aksenov

the reason is: if i already have defined asset in AT system. i the real
life i need only make some changes in it (patch installed, disk replaced,
etc) and url link to this asset will be static.
for RT system I have CF field with list of assets and then users will
create ticket they will link it with asset (by selecting value) and
understand the mean by the value (not url).
I think the Name is more comfortable for users then URL.

with best wishes
German Aksenov

If you were trying to simplify linking assets to tickets it
might have been better to write a special-case interface for
doing that.