Skip to content

Latest commit

 

History

History
 
 

save_hook_sample_app

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

⚠️ Use of this software is subject to important terms and conditions as set forth in the License file ⚠️

Save Hook Sample App

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.

The hook reference page

The following information is displayed:

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.

Screenshot(s):

Screen shot