You can embed a Ticket form to allow Users to submit Tickets from your website, without need to use the Deskpro Help Center.
To do this you will need to add some Javascript code to your website. If you are unsure how to do this, please contact your website administrator for help.
Embedding a Form
Go to Ticket Structure > Departments. Click onto a Department and the left hand pop up window will have a tab called Website Embed

Select the Brand, you can also optionally set the department, otherwise the User will be required to choose a Department.
Select the width (in pixels) that the form should fill on your web page.
Click Generate Code.
In the box that appears, select all of the Javascript code and add it to your web page wherever you want the form to appear.
Some ‘site builder’ services may not allow you to insert the Javascript required to embed the form Widget.
You can use the ability to specify a Department to put the most relevant forms on each area of your site; for example, you could embed a form for the Support Department on the Support section of your website, but a form for the Sales Department on a page that lists your products.
Creating a Custom Form
As an alternative to the Javascript form embed you can use the Deskpro API to submit a Ticket from an HTML form. This requires basic web development skills.
This can be useful if the Javascript form doesn’t suit your needs - for example, you want to make a single form that submits information to Deskpro and a different service.
See the API documentation for details.
See our Github account for a worked example of how to implement a ticket form in PHP using the Deskpro PHP SDK.
Please log in or register to submit a comment.