[rt-users] Set CustomField value on 'Quick ticket creation'

Stephen Fung stephen at hknet.com
Mon Feb 6 04:58:42 EST 2006

Hi all,

Is it possible to set the value of a global custom field by using the 
'Quick ticket creation' form?

I've modified the form to show that custom field but I found the custom 
field is not updated while the ticket is created.

Below is contents of my '/Elements/QuickCreate':

<& /Elements/TitleBoxStart, title => loc('Quick ticket creation') &>
<form method="post" action="<%$RT::WebPath%>/index.html">
<input type="hidden" name="QuickCreate" value="1">
<font size="-2"><&|/l&><% $CF->Name %></&>:<br><& 
/Elements/EditCustomField, CustomField => $CF, NamePrefix => 
"Object-RT::Transaction--CustomField-" &></font>
<font size="-2"><&|/l&>Subject</&>:<br><input size="40" 
<font size="-2"><&|/l&>Queue</&>:<br><& /Elements/SelectQueue, Name => 
'Queue', ShowNullOption => 0, ShowAllQueues => 0 &></font>
<tr><td colspan="3"><font size="-2"><textarea cols="50" 
<div align="right"><input type="submit" value="<%loc('Create')%>"></div>
<& /Elements/TitleBoxEnd &>

my $CF = RT::CustomField->new( $session{'CurrentUser'});
$CF->LoadByName(Queue => 0, Name => 'Area');

Any idea?


More information about the rt-users mailing list