How to hide TICKET TYPE (Resolved)

Moderator: crythias

Post Reply
JazzMed13
Znuny newbie
Posts: 39
Joined: 06 Apr 2016, 17:18
Znuny Version: 6.0.4
Real Name: Jazmin Medina
Company: Private

How to hide TICKET TYPE (Resolved)

Post by JazzMed13 »

I have this problem

i need hide type when agent create a new ticket
what i need to change on AgentTicketPhone.tt

Please help me
Last edited by JazzMed13 on 14 Oct 2016, 18:37, edited 1 time in total.
wurzel
Znuny guru
Posts: 3232
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: How to hide TICKET TYPE

Post by wurzel »

Hi,

use a ACL.

Flo
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: How to hide TICKET TYPE

Post by jojo »

switch off type via sysconfig
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
JazzMed13
Znuny newbie
Posts: 39
Joined: 06 Apr 2016, 17:18
Znuny Version: 6.0.4
Real Name: Jazmin Medina
Company: Private

Re: How to hide TICKET TYPE

Post by JazzMed13 »

wurzel wrote:Hi,

use a ACL.

Flo

CAN YOU TELL ME MORE INFO ABOUT HOW TO CREATE ACL PLEASE
Charmacas
Znuny advanced
Posts: 103
Joined: 18 Jan 2016, 10:27
Znuny Version: 5.0.26 on Debian 8

Re: How to hide TICKET TYPE

Post by Charmacas »

I would start off reading this: https://otrs.github.io/doc/manual/admin ... ation.html

And please don't write in upper case...
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: How to hide TICKET TYPE

Post by reneeb »

ACLs can limit the shown values, but *not* hide a field...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
JazzMed13
Znuny newbie
Posts: 39
Joined: 06 Apr 2016, 17:18
Znuny Version: 6.0.4
Real Name: Jazmin Medina
Company: Private

Re: How to hide TICKET TYPE

Post by JazzMed13 »

with this code

[% RenderBlockStart("TicketType") %]
<div>
<!--
<label for="TicketNumber">[% Config("Ticket::Hook") %]</label>
<input title="Ticket#" type="text" name="TicketNumber" size="30" value="[% Data.TicketNumber | html %]" />
-->
<label for="TypeID" class="Mandatory"><span class="Marker">*</span>[% Translate("Type") | html %]:</label>
[% Data.TypeStrg %]
<div id="TypeIDError" class="TooltipErrorMessage" ><p>[% Translate("This field is required.") | html %]</p></div>
<div id="TypeIDServerError" class="TooltipErrorMessage NoJavaScriptMessage[% Data.TypeIDInvalid | html %]" ><p>[% Translate("This field is required.") | html %]</p></div>
<div class="Clear"></div>
</div>

[% WRAPPER JSOnDocumentComplete %]
<script type="text/javascript">//<![CDATA[
$('#TypeID').bind('change', function (Event) {
Core.AJAX.FormUpdate($('#NewCustomerTicket'), 'AJAXUpdate', 'TypeID', ['Dest', 'PriorityID', 'ServiceID', 'SLAID', [% Data.DynamicFieldNamesStrg %]]);
});
//]]></script>
[% END %]
[% RenderBlockEnd("TicketType") %]



can i change by a predetermined value that way hide the field Ticket Type
Post Reply