[rt-users] Linked fields
Kevin Falcone
falcone at bestpractical.com
Fri Aug 27 13:10:08 EDT 2010
On Thu, Aug 26, 2010 at 05:24:22PM -0600, Sysadmin wrote:
> I'm trying to add Custom Fields in the Requester area of the ticket.
> I got the first Custom Value, but cannot get the second custom
> value?
You appear to misunderstand FirstCustomFieldValue. It is the first
value for the custom field passed in. It has nothing to do with
something being the 'third CF assigned to a ticket'.
If you actually have a custom field with multiple values, you want to
reread the documentation in RT::Record and look for the similarly
named method a few lines later
-kevin
> the first was:
>
> <span class="label"><&|/l&>Account #:</&>:</span><br />
> > <b class="value"><% ($requestor->FirstCustomFieldValue('Room') ||
> > loc("No Account # entered for this user")) %></b><br />
>
> and I tried:
>
> # <span class="label"><&|/l&>IP:</&>:</span><br />
> # <b class="value"><% ($requestor-> SecondCustomFieldValue('IP
> Address') || loc("No IP Address entered for this user")) %></b><br
> />
>
>
> For the second, but that doesn't work. any Ideas?
>
> Thanks,
>
> David
> System Admin
> RNS
>
> Running RT 3.8.7
>
> On 8/16/2010 9:40 AM, Björn Schulz wrote:
> >Hi David,
> >
> >I use user CFs and a customized ShowRequestor in
> >.../Ticket/Elements/ShowRequestor. Not a special service Ticket.
> >
> ><span class="label"><&|/l&>Phone:</&>:</span><br />
> ><b class="value"><% ($requestor->WorkPhone || loc("No WorkPhone
> >entered about this user")) %></b><br />
> >
> >or
> >
> ><span class="label"><&|/l&>Room:</&>:</span><br />
> ><b class="value"><% ($requestor->FirstCustomFieldValue('Room') ||
> >loc("No room entered about this user")) %></b><br />
> >
> >Hope this helps
> >
> > Björn
> >
> >
> >
> >
> >Am 13.08.10 23:18, schrieb Sysadmin:
> >>Is there a way to " link"custom fields? So, I trying to link custom
> >>field data, so that custom fields like Account #, Customer Equip, Phone
> >>#, that exist in a service ticket and in the user information, will
> >>populate each other, ie in creating a service ticket for a /new
> >>custome/r, the linked custom field data input in the ticket will
> >>populate the user information custom field data. And vice-versa if the
> >>customer already exists, then the ticket, would pull data from the user
> >>information data.
> >>
> >>David
> >>System Admin
> >>RNS
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>RT Training in Washington DC, USA on Oct 25& 26 2010
> >>Last one this year -- Learn how to get the most out of RT!
> >
>
> 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 --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100827/5304ef4d/attachment.sig>
More information about the rt-users
mailing list