SelfService custom fields, howto?

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:

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

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 Request Tracker Wiki ). Does
anyone know how this can be done? Any suggestions would be greatly
appreciated.

Regards,
Vance

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:

Try grantin unprivileged users the rights to see and modify the custom
field directly?

Hi Jesse,

The problem seems to be that there is no HTML in SelfService’s
Create.html to include the custom fields on the SelfService page. No
matter what rights I give, the fields won’t show up if this HTML file
doesn’t include code to display them.

Has anyone in RT-Users ever added custom fields to the SelfService page?
If so, any points would be greatly appreciated.

Regards,
VanceOn Tue, 2006-04-18 at 17:53 -0400, Jesse Vincent wrote:

On Tue, Apr 18, 2006 at 05:40:48PM -0400, Vance Vagell wrote:

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:

Try grantin unprivileged users the rights to see and modify the custom
field directly?

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:

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

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 Request Tracker Wiki ). Does
anyone know how this can be done? Any suggestions would be greatly
appreciated.

Regards,
Vance


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

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: Careers — Best Practical Solutions

Hi Jesse,

The problem seems to be that there is no HTML in SelfService’s
Create.html to include the custom fields on the SelfService page. No
matter what rights I give, the fields won’t show up if this HTML file
doesn’t include code to display them.

There sure is, at least as of RT 3.4.5, the current production release.