[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">
<table>
<tr>
<td>
<font size="-2"><&|/l&><% $CF->Name %></&>:<br><&
/Elements/EditCustomField, CustomField => $CF, NamePrefix =>
"Object-RT::Transaction--CustomField-" &></font>
</td>
<td>
<font size="-2"><&|/l&>Subject</&>:<br><input size="40"
name="Subject"></font>
</td>
<td>
<font size="-2"><&|/l&>Queue</&>:<br><& /Elements/SelectQueue, Name =>
'Queue', ShowNullOption => 0, ShowAllQueues => 0 &></font>
</td>
</tr>
<tr><td colspan="3"><font size="-2"><textarea cols="50"
rows="3"></textarea></font></td></tr>
</table>
<div align="right"><input type="submit" value="<%loc('Create')%>"></div>
</form>
<& /Elements/TitleBoxEnd &>
<%init>
my $CF = RT::CustomField->new( $session{'CurrentUser'});
$CF->LoadByName(Queue => 0, Name => 'Area');
</%init>
Any idea?
Regards,
Stephen
More information about the rt-users
mailing list