[rt-users] how to pre-fill fields?

Jason Edgar superjuke at gmail.com
Sun Oct 17 20:48:49 EDT 2010


Thanks Mathieu: I got it. An extra $ was needed before ARGSRef from line 3. I have no idea what it is for, I followed other examples from the Internet.
Also the description field is called 'content'. Thanks again.


On Sun, 17 Oct 2010 11:35:08 -0400, Mathieu Longtin wrote:
> <%INIT>
> my $ARGSRef = $ARGS{'ARGSRef'};
> if ( not $ARGSRef{'id'} ) { # Check if the ticket is really empty
> before doing anything   $ARGSRef{'Subject'} ||= 'Default subject';  
> $ARGSRef{'Requestor'} ||= 'mydefault at requestor.com'; } </%INIT>
> <%ARGS> </%ARGS>





More information about the rt-users mailing list