Page 1 of 1
Change Default Search Field in Search Tickets Form
Posted: Fri Sep 29, 2017 10:34 pm
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!

Re: Change Default Search Field in Search Tickets Form
Posted: Sat Sep 30, 2017 6:05 am
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++
Re: Change Default Search Field in Search Tickets Form
Posted: Mon Jan 01, 2018 11:33 pm
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.
Re: Change Default Search Field in Search Tickets Form
Posted: Tue Jan 02, 2018 11:58 am
by Klemen
Fields displayed in list of tickets (either browse or search) are set in Admin panel > Settings > Ticket list tab.
Re: Change Default Search Field in Search Tickets Form
Posted: Tue Jan 02, 2018 3:52 pm
by tuneup
In the
Find a Ticket------>Search In----->?
Is there any possibilities to show only email address/Name or/other selected items alone
Re: Change Default Search Field in Search Tickets Form
Posted: Tue Jan 02, 2018 8:01 pm
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.