<div>I had thought about doing that but it seemed like there would be some way to access the queue from the ARGSRef. It's good to know that is an option. </div><div><br></div><div>How are you handling custom field layout in your CreateNew.html then? Ideally I would like to modify the layout of some custom fields or maybe put them into their own section. It looks like the fields are all rendered in /Ticket/Elements/EditCustomFields.</div>
<div><br></div><div>What is the best practice there?</div><div><br></div><div>Thanks,</div><div>Jim</div><div><br><div class="gmail_quote">On Tue, Jun 12, 2012 at 3:29 AM, Renney, Paul <span dir="ltr"><<a href="mailto:paul.renney@logica.com" target="_blank">paul.renney@logica.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">Jim,<br>
<br>
I did it the following way in RT 4.0.5:<br>
<br>
Copied share/html/Ticket/Create.html into the local/html/Ticket directory, changed the Init callback line in Create.html to make:<br>
<br>
$m->callback( CallbackName => "Init", ARGSRef => \%ARGS, QueueObj => QueueObj );<br>
<br>
Copied original Create.html into local directory and renamed original Create.html to another name (CreateNew.html).<br>
<br>
In the callback you described (local/html/Callbacks/MYNAME/Ticket/Create.html/Init) I have:<br>
<br>
<div><%init></div>
<div>if ($Queueobj->Name eq 'Custom Queue Name'){</div>
<div> $m->redirect($RT::WebURL."Ticket/CreateNew.html?Queue=".$QueueObj->id);</div>
<div>}</div>
<div></%init></div>
<br>
<%ARGS><br>
  $QueueObj => undef<br>
</%ARGS><br>
<br>
The WebURL part is probably not needed, and I'm not sure what the ARGS section does, but I don't want to change it now as it works. Apologies if there are any typos, I'm copying it across manually from another terminal.
<br>
<br>
Regards,<br>
Paul<br>
<br>
<div style="font-size:16px;font-family:Times New Roman">
<hr>
<div style="direction:ltr"><font face="Tahoma" color="#000000"><b>From:</b> <a href="mailto:rt-users-bounces@lists.bestpractical.com" target="_blank">rt-users-bounces@lists.bestpractical.com</a> [<a href="mailto:rt-users-bounces@lists.bestpractical.com" target="_blank">rt-users-bounces@lists.bestpractical.com</a>] on behalf of Jim Lesinski [<a href="mailto:jim.lesinski@gmail.com" target="_blank">jim.lesinski@gmail.com</a>]<br>

<b>Sent:</b> 11 June 2012 23:39<br>
<b>To:</b> <a href="mailto:rt-users@lists.bestpractical.com" target="_blank">rt-users@lists.bestpractical.com</a><br>
<b>Subject:</b> [rt-users] Callback to redirect page in Create.html<br>
</font><br>
</div><div><div class="h5">
<div></div>
<div>Hello,
<div><br>
</div>
<div>Can anyone offer any insight about creating a Callback in Create.html to redirect to a custom create page an a per queue basis? I believe I have the correct callback in:</div>
<div><br>
</div>
<div>/opt/rt4/local/html/Callbacks/MYNAME/Ticket/Create.html/Init</div>
<div><br>
</div>
<div>and I am able to perform the redirect, but can't seem to get the queue name properly to test the queue name. I am thinking it would be something like</div>
<div><br>
</div>
<div><%init></div>
<div>%if ($Queueobj->Name eq 'Whatever'){</div>
<div> $m->redirect('/Tickets/custom.html');</div>
<div>}</div>
<div></%init></div>
<div><br>
</div>
<div><br>
</div>
<div>the redirect portion works fine, I just don't know how to get the queue name. If anyone wants to offer up an end to end solution including an example custom page that would be even better!</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Jim</div>
</div>
</div></div></div>
</div>
<br clear="all"> Think green - keep it on the screen.



This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.


</div>


</blockquote></div><br></div>