Hi everyone,
Is there anyway I can replace the self service create.html
page, with the /Ticket/Create.html
page.
This is my /SelfService/Create.html
page,
And I want to show this ( /Ticket/Create.html
) for every user when someone create a ticket. I want to have the custom fields grouping like in the printscreen below:
So basically I want to have the custom field grouping in the self service create.html
page, as in the second screenshot.
Thank you
You could do a local overlay of the self service create page and add the custom field groupings code. Maybe something like this will be enough?
--- a/share/html/SelfService/Create.html
+++ b/share/html/SelfService/Create.html
@@ -98,9 +98,21 @@
CustomFields => $queue_obj->TicketCustomFields,
AsTable => 0,
ForCreation => 1,
+ Grouping => 'Basics',
&>
</td>
</tr>
+<tr>
+ <td colspan="2">
+ <& /Elements/EditCustomFieldCustomGroupings,
+ %ARGS,
+ Object => $ticket,
+ CustomFieldGenerator => sub { $queue_obj->TicketCustomFields },
+ ForCreation => 1,
+ &>
+ </td>
+</tr>
+
<& /Ticket/Elements/AddAttachments, %ARGS, QueueObj => $queue_obj &>
</table>
<table width="100%">
@@ -123,6 +135,8 @@ my @results;
my $queue_obj = RT::Queue->new($session{'CurrentUser'});
$queue_obj->Load($Queue);
+my $ticket = RT::Ticket->new($session{'CurrentUser'}); # empty ticket object
+
ProcessAttachments(ARGSRef => \%ARGS);
my $skip_create = 0;
Thank you @knation,
that seems to do the trick.