Knowledgebase
ICT Support Desk > Submit a ticket > Knowledgebase

Search help:


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

Solution

You can 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:

 
Was this article helpful? yes / no
Article details
Article ID: 1
Category: How do I...
Date added: 2017-05-03 11:47:39
Views: 17
Rating (Votes): Article rated 5.0/5.0 (1)

 
« Go back

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