How to hide Priority from AGENT interface? [Solved]

Moderator: crythias

Post Reply
guillo
Znuny newbie
Posts: 98
Joined: 16 May 2012, 20:05
Znuny Version: 3.0.7

How to hide Priority from AGENT interface? [Solved]

Post by guillo »

I'm using OTRS 3.0.7

I tried to hide it from the DTL file on Kernel\Output\HTML\Standard, but it gave me an error: need ticket ID.

From SYSCONFIG I couldn't find a way to hide it. (Only for the costumer interface)

I just want it to not to show on the costumer interface or deactivate it completly. Anyway will do.

Any Ideas??
Last edited by guillo on 15 Jan 2013, 00:48, edited 1 time in total.
OTRS V 3.0.7 Windows 2008 x64 going for 3.1.7
OTRS 3.1.12 on LINUX UBUNTU SERVER
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How to hide Priority from AGENT interface?

Post by crythias »

Priority is required. If you want to hide it, change the dtl for the field to input type hidden.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
guillo
Znuny newbie
Posts: 98
Joined: 16 May 2012, 20:05
Znuny Version: 3.0.7

Re: How to hide Priority from AGENT interface?

Post by guillo »

Thanks man..

I'm sorry but I can't find the string to hide it. I found this

<input type="hidden" name="PriorityRC" value="0"/> and changed the value from 0 to 1 but it didn't work so I think I'm not on the right track
OTRS V 3.0.7 Windows 2008 x64 going for 3.1.7
OTRS 3.1.12 on LINUX UBUNTU SERVER
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How to hide Priority from AGENT interface?

Post by crythias »

Pick a screen you don't want to see priority. Tell us what it is. Edit the dtl for that screen.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
guillo
Znuny newbie
Posts: 98
Joined: 16 May 2012, 20:05
Znuny Version: 3.0.7

Re: How to hide Priority from AGENT interface?

Post by guillo »

I don't want to see the priority on the New Phone ticket and New Email ticket
OTRS V 3.0.7 Windows 2008 x64 going for 3.1.7
OTRS 3.1.12 on LINUX UBUNTU SERVER
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 Priority from AGENT interface?

Post by reneeb »

The .dtls for that screens are

Kernel/Output/HTML/Standard/AgentTicketPhone.dtl
Kernel/Output/HTML/Standard/AgentTicketEmail.dtl

There you'll find

Code: Select all

                    <label for="PriorityID">$Text{"Priority"}:</label>
                    <div class="Field">
                        $Data{"PriorityStrg"}
<!--dtl:js_on_document_complete-->
<script type="text/javascript">//<![CDATA[
    $('#PriorityID').bind('change', function (Event) {
        Core.AJAX.FormUpdate($('#NewPhoneTicket'), 'AJAXUpdate', 'PriorityID', [ 'TypeID', 'Dest', 'NewUserID','NewResponsibleID', 'NextStateID', 'ServiceID', 'SLAID', 'SignKeyID', 'CryptKeyID', $Data{"DynamicFieldNamesStrg"}, 'To', 'Cc', 'Bcc']);
    });
//]]></script>
<!--dtl:js_on_document_complete-->
                    </div>
                    <div class="Clear"></div>
You should wrap it in a

Code: Select all

<div class="Hidden"></div>
Simply making it an "input type='hidden'" is not enough because some JavaScript code assume "PriorityID" field is a drop down...
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
guillo
Znuny newbie
Posts: 98
Joined: 16 May 2012, 20:05
Znuny Version: 3.0.7

Re: How to hide Priority from AGENT interface?

Post by guillo »

Thanks a lot to you all. It worked! :D
OTRS V 3.0.7 Windows 2008 x64 going for 3.1.7
OTRS 3.1.12 on LINUX UBUNTU SERVER
drodralv
Znuny advanced
Posts: 102
Joined: 26 Jul 2019, 08:25
Znuny Version: 5.0.28

Re: How to hide Priority from AGENT interface? [Solved]

Post by drodralv »

Hi!
So for example i have this code:

Code: Select all

<div class="Clear"></div>

                        <label for="PriorityID">[% Translate("Priority") | html %]:</label>
                        <div class="Field">
                        [% Data.PriorityStrg %]
[% WRAPPER JSOnDocumentComplete %]
<script type="text/javascript">//<![CDATA[
    $('#PriorityID').bind('change', function (Event) {
        Core.AJAX.FormUpdate($('#NewPhoneTicket'), 'AJAXUpdate', 'PriorityID', [ 'TypeID', 'Dest', 'NewUserID','NewResponsibleID', 'NextStateID', 'ServiceID', 'SLAID', 'SignKeyID', 'CryptKeyID', 'To', 'Cc', 'Bcc', 'StandardTemplateID' [% Data.DynamicFieldNamesStrg %]]);
    });
//]]></script>
[% END %]
                        </div>
                        <div class="Clear"></div>
And i should leave it as:

Code: Select all

<div class="Hidden"><div class="Clear"></div>

                        <label for="PriorityID">[% Translate("Priority") | html %]:</label>
                        <div class="Field">
                        [% Data.PriorityStrg %]
[% WRAPPER JSOnDocumentComplete %]
<script type="text/javascript">//<![CDATA[
    $('#PriorityID').bind('change', function (Event) {
        Core.AJAX.FormUpdate($('#NewPhoneTicket'), 'AJAXUpdate', 'PriorityID', [ 'TypeID', 'Dest', 'NewUserID','NewResponsibleID', 'NextStateID', 'ServiceID', 'SLAID', 'SignKeyID', 'CryptKeyID', 'To', 'Cc', 'Bcc', 'StandardTemplateID' [% Data.DynamicFieldNamesStrg %]]);
    });
//]]></script>
[% END %]
                        </div>
                        <div class="Clear"></div></div>
Or where exactly should be that div class Hidden?

Sorry for being a newbie.

Thanks in advance
root
Administrator
Posts: 3965
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: How to hide Priority from AGENT interface? [Solved]

Post by root »

Hi,

Please open up a new post and don't hijack old ones.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Post Reply