Hooks are a special kind of event that you can create event handlers for in your app. Different to other kinds of events, Hooks give the ability to respond to the event from within your handler in a way that can affect the outcome of the action that triggered the event. e.g. you can reject a submission if a particular field of the ticket is not specified
This app renders in the ticket_sidebar
and new_ticket_sidebar
and shows how you can use the ticket.save
save hook.
How to:
- simply accept/reject a ticket submission
- reject a ticket submission with an error message
- accept/reject a ticket submission with a delay, using promise
- accept/reject a ticket submission after doing an ajax request
Please submit bug reports to Zendesk. Pull requests are welcome.