[SOLVED] Remove Pending date field & CustomerID

Moderator: crythias

Locked
slowstuff
Znuny newbie
Posts: 7
Joined: 06 Dec 2013, 16:19
Znuny Version: 3.1.2
Real Name: Chris

[SOLVED] Remove Pending date field & CustomerID

Post by slowstuff »

I am trying to remove the "Pending Date (for pending* states):" and "CustomerID" fields. We do not use pending tickets and the Customer is already listed on the ticket, in our case CustomerID is redundant. I have already set the pending state to invalid, but I can not find a way to remove these fields.

I searched and found this viewtopic.php?f=62&t=7230 but I have no idea what the solution means, and would rather just switch it off in the config if possible.

Thanks.
Last edited by slowstuff on 19 Dec 2013, 18:41, edited 1 time in total.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Remove Pending date field & CustomerID

Post by crythias »

CustomerID is a required field. You can change the dtl to make the field hidden, but it still needs a value. CustomerUserID (login) is one part. CustomerID (usually: department, company, or email address) is another part. It allows for "grouping" of related customers.

The link you showed allows for the pending dates to be hidden unless a pending state is chosen. You can use the code or remove the pending date code from the appropriate dtl if you wish.
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
slowstuff
Znuny newbie
Posts: 7
Joined: 06 Dec 2013, 16:19
Znuny Version: 3.1.2
Real Name: Chris

Re: Remove Pending date field & CustomerID

Post by slowstuff »

Unfortunately I just took over helpdesk admin, our CustomerID's were not setup correctly, so everyone has a unique ID. I may change that so we can group ticket by department, but I would still like to hide the field to make the interface as clean as possible.

Thanks for the quick response.
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Remove Pending date field & CustomerID

Post by skullz »

I think you can hide the field..maybe like this..
Go to the template file e.g AgentTicketPhone.dtl (you may want to do this at Custom directory), comment the label and change field class to Hidden

Code: Select all

<label for="CustomerID">$Text{"CustomerID"}:</label>
                    <div class="Field">
                        <input type="text" name="CustomerID" id="CustomerID" value="$QData{"CustomerID"}" class="W75pc"/>
                    </div>
                    <div class="Clear"></div>
TO

Code: Select all

<!-- <label for="CustomerID">$Text{"CustomerID"}:</label>  -->
                    <div class="Hidden">
                        <input type="text" name="CustomerID" id="CustomerID" value="$QData{"CustomerID"}" class="W75pc"/>
                    </div>
                    <div class="Clear"></div>
good luck
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
slowstuff
Znuny newbie
Posts: 7
Joined: 06 Dec 2013, 16:19
Znuny Version: 3.1.2
Real Name: Chris

Re: [SOLVED] Remove Pending date field & CustomerID

Post by slowstuff »

Thanks for the info skullz. I was able to add style="display: none;" to the div on fields I wanted to remove.
Locked