<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.3.2">
</HEAD>
<BODY>
Hello,<BR>
<BR>
I have been toiling with this issue for a while now -- how to get custom fields to show up on the SelfService ticket creation page (the page regsitered but unprivileged users see). For reference, the HTML file that powers this page is:<BR>
<BR>
RT_DIR/share/html/SelfService/Create.html <BR>
(though of course we edit the copy in "local" so as to not overwrite this original)<BR>
<BR>
I've created a bunch of custom fields, and given the Everyone group rights to see and edit these fields in our main queue. Then, I took a look at Create.html from the Ticket directory (this is the file that <I>privileged</I> users see when they request a ticket) to see how that page includes the custom fields. The following code is used in this Create.html:<BR>
<BR>
<TR><BR>
<TD COLSPAN=6><BR>
<& /Ticket/Elements/EditCustomFields, QueueObj => $QueueObj &><BR>
</TD><BR>
</TR><BR>
% if ($TxnCFs->Count) {<BR>
% while (my $CF = $TxnCFs->Next()) {<BR>
<TR><BR>
<TD ALIGN=RIGHT><% $CF->Name %>:</TD><BR>
<TD><& /Elements/EditCustomField, CustomField => $CF, NamePrefix =><BR>
"Object-RT::Transaction--CustomField-" &><em><% $CF->FriendlyType %></em></TD><BR>
</TD></TR><BR>
% }<BR>
% }<BR>
<BR>
However, I found that including this same code in the SelfService's Create.html did not do the trick -- it resulted in some empty tables on the page. My current thinking is that maybe the includes in this code (e.g. /Ticket/Elements/EditCustomFields, etc.) aren't available from the SelfService directory.<BR>
<BR>
I noticed that the RT Wiki mentioned that someone had once posted a code snippet to get this to work, but the Wiki doesn't know where to find it (see <A HREF="http://wiki.bestpractical.com/index.cgi?PostQuestionsHere).">http://wiki.bestpractical.com/index.cgi?PostQuestionsHere</A> ). Does anyone know how this can be done? Any suggestions would be greatly appreciated.<BR>
<BR>
Regards,<BR>
Vance
</BODY>
</HTML>