[rt-users] Get the selected value of a CustomField with a Script
Kenneth Crocker
kfcrocker at lbl.gov
Tue Sep 7 12:16:25 EDT 2010
Marco,
Try "$Ticket->FirstCustomFieldValue('Name of CF')" for templates and
"$self->TicketObj->FirstCustomFieldValue('Name of CF')" for scrips.
I believe there is an example in the book.
Kenn
LBNL
On Tue, Sep 7, 2010 at 8:51 AM, <Marco.deSousa at billag.com> wrote:
> Hello,
>
> I have a ticket with some Custom Fields.
>
> I wrote a scrip and i need to read the Custom Fields values,
> but i don't find the command.
>
> For example, if i have a CF myCF(combobox) with values ( red, orange,
> green),
> and user select a value ( red )
>
> What command on my script i can use to get the selected value ?
>
> I look for something like that:
> $myColor = $myCF->getSelectedValue;
>
> now $myColor has 'red'
>
>
>
>
> Tanks best regards.
>
> Marco
>
>
>
> RT Training in Washington DC, USA on Oct 25 & 26 2010
> Last one this year -- Learn how to get the most out of RT!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100907/85ca313e/attachment.htm>
More information about the rt-users
mailing list