Help Desk Software

Knowledgebase
Back to HESK.com > HESK Knowledgebase > Knowledgebase

Search help:


How do I populate "Submit a ticket" form fields?

Solution

As of version 2.6.x HESK allows you to automatically fill the "Submit a ticket" form fields with custom values.

 

To fill an input field, the data needs to be sent to the "Submit a ticket" form in either a HTTP GET or POST request.

Make sure all the values are properly URL encoded. For example, pass them through urlencode() or rawurlencode() functions in PHP.

 

Available parameters:

 

Parameter name Sets value in field Value type
name Customer name URL-encoded string
email Customer email URL-encoded string
catid Ticket category Integer (numerical category ID)
category Ticket category Integer (numerical category ID)
priority Ticket priority Integer
0 = Low
1 = Mediun
2 = High
subject Ticket subject URL-encoded string
message Ticket message URL-encoded string
custom1 - custom20 Custom fields 1 to 20 respectively URL-encoded string

 

Examples:

#1 Fill in customer name (John Doe) and email address (john@doe.com):

http://domain.com/hesk/index.php?a=add&name=John+Doe&email=john%40doe.com

 

#2 Select category ID 3 and set custom field number 5 to "0800-128-458":

http://domain.com/hesk/index.php?a=add&catid=3&custom5=0800-128-458

 

#3 Fill in ticket subject and high priority:

http://domain.com/hesk/index.php?a=add&subject=My+printer+is+offline&priority=2

 
Was this article helpful? yes / no
Related articles How can I modify emails sent by HESK?
How to customize email subjects
How do I submit a ticket in customers' name?
How to disable "Submit" button and multiple submissions?
How do I prevent customers from choosing priority?
Article details
Article ID: 83
Category: How do I...
Rating (Votes): Article rated 3.9/5.0 (112)

 
« Go back

 
Powered by Help Desk Software HESK, brought to you by SysAid

Help Desk Software