Hello,

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:

RT_DIR/share/html/SelfService/Create.html
(though of course we edit the copy in "local" so as to not overwrite this original)

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 privileged 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:

<TR>
<TD COLSPAN=6>
<& /Ticket/Elements/EditCustomFields, QueueObj => $QueueObj &>
</TD>
</TR>
% if ($TxnCFs->Count) {
% while (my $CF = $TxnCFs->Next()) {
<TR>
<TD ALIGN=RIGHT><% $CF->Name %>:</TD>
<TD><& /Elements/EditCustomField, CustomField => $CF, NamePrefix =>
    "Object-RT::Transaction--CustomField-" &><em><% $CF->FriendlyType %></em></TD>
</TD></TR>
% }
% }

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.

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 http://wiki.bestpractical.com/index.cgi?PostQuestionsHere ).  Does anyone know how this can be done?  Any suggestions would be greatly appreciated.

Regards,
Vance
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


We're hiring! Come hack Perl for Best Practical: 
http://bestpractical.com/about/jobs.html

Reply via email to