Hello,
I swear I browsed the forums looking for a reply before coming to you for help. I also acknowledge that you don't provide support for editing code in Hesk. Still, I thought I'd give it a shot and hope someone in the forums has a quick fix for this.
Here's the thing: I'd like to hide the category field from the customers when submitting a ticket and have it auto-assigned by the direct link to that category.
Can this be done?
Thanks in advance,
Tiago
Hide Category From Customer
Moderator: mkoch227
Re: Hide Category From Customer
Something like this should work:
1. Open index.php in a text editor
2. find this code
3. just BELOW add this
4. Save, upload and test!
1. Open index.php in a text editor
2. find this code
Code: Select all
if (hesk_dbNumRows($res) == 1)
{
/* Only 1 public category, no need for select box */
$row = hesk_dbFetchAssoc($res);
echo '<input type="hidden" name="category" value="'.$row['id'].'" />';
}
Code: Select all
elseif ( ! empty($_GET['catid']) )
{
echo '<input type="hidden" name="category" value="'.intval($_GET['catid']).'" />';
}
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: Hide Category From Customer
Absolutely perfect!
Thank you so much!
Thank you so much!