Change Default Search Field in Search Tickets Form

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
Lisaweb
Posts: 94
Joined: Sun Sep 25, 2011 3:23 pm

Change Default Search Field in Search Tickets Form

Post by Lisaweb »

Version of script: 2.7.3
What terms did you try when SEARCHING for a solution: search ticket default

Write your message below:

On the admin_main.php page, in the "Find a Ticket" box, we would like to change the default "Search In" field to "Subject" instead of "Tracking ID". How would we do this? Thanks for any assistance you can provide! :-)
- Lisa
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Change Default Search Field in Search Tickets Form

Post by Klemen »

In inc/show_search_form.inc.php file try changing

Code: Select all

if ( ! isset($what) )
{
	$what = 'trackid';
}
to

Code: Select all

if ( ! isset($what) )
{
	$what = 'subject';
}
Important: please modify the file in a powerful text editor that can correctly save files in UTF-8 without BOM, for example the free Notepad++
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
tuneup
Posts: 30
Joined: Thu Jun 15, 2017 1:39 am

Re: Change Default Search Field in Search Tickets Form

Post by tuneup »

How to include only selected details in Search in Field.

Now track ID , email address, name and etc. I want to show only two or three selected items.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Change Default Search Field in Search Tickets Form

Post by Klemen »

Fields displayed in list of tickets (either browse or search) are set in Admin panel > Settings > Ticket list tab.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
tuneup
Posts: 30
Joined: Thu Jun 15, 2017 1:39 am

Re: Change Default Search Field in Search Tickets Form

Post by tuneup »

In the

Find a Ticket------>Search In----->?

Is there any possibilities to show only email address/Name or/other selected items alone
prostar190fan
Posts: 17
Joined: Mon Oct 30, 2017 8:35 pm

Re: Change Default Search Field in Search Tickets Form

Post by prostar190fan »

tuneup wrote: Tue Jan 02, 2018 3:52 pm In the

Find a Ticket------>Search In----->?

Is there any possibilities to show only email address/Name or/other selected items alone
Yes, you can edit all of the shown items via the show_search_form.inc.php. The display options start at line 330 and you can edit from there.
Post Reply