Autofill Portion of Ticket via Link
Moderator: mkoch227
Autofill Portion of Ticket via Link
I am currently working on a client's website, and I would like the users of the site to contact me via HESK if there are any issues with the site. To easily distinguish requests from the client site, I want to autofill the subject line when the user clicks a link to "contact the webmaster" (me). Is there any way I can modify the link so that a portion of the ticket is "pre-filled" for the user?
Mike, Lead Developer of
HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
Re: Autofill Portion of Ticket via Link
You could do that with a small modification:
1. send message using a query string, for example by adding "&subject=Test" to the URL
2. make HESK check if the subject parameter is set.
3. If yes, define a session variable with the subject
In other words:
1. open index.php
2. just BELOW this code add something like
3. call your help desk like this:
1. send message using a query string, for example by adding "&subject=Test" to the URL
2. make HESK check if the subject parameter is set.
3. If yes, define a session variable with the subject
In other words:
1. open index.php
2. just BELOW this code
Code: Select all
define('AUTOFOCUS', true);
Code: Select all
if ( ! empty($_GET['subject']) )
{
$_SESSION['c_subject'] = stripslashes(hesk_input( hesk_GET('subject') ));
}
Code: Select all
http://site.com/hesk/index.php?a=add&subject=Test
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: Autofill Portion of Ticket via Link
The above is almost exactly what I need. However, what I need to do is auto-fill a few Custom Fields.
Could you please explain how to target these fields instead of "c_subject"?
Could you please explain how to target these fields instead of "c_subject"?
Re: Autofill Portion of Ticket via Link
You would use "c_custom1", "c_custom2",... up to "c_custom_20" instead.
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