---
title: Client Click Event Handlers
slug: client-click-event-handlers
docTags: 
createdAt: 2025-07-24T03:04:55.901Z
---

Server Side Click handlers are no longer supported, however, there are a number of client click handlers available. This is an advanced feature and is only required in specific circumstances.

| Available         | EventName           | Description                                                                                                                                                              |
| ----------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Form              | onSubmit            | Submit the current Form. This is not normally required as it is the default action for a FormButton or RibbonButton (with no Link)                                       |
| Form              | onSave              | Submit the current form with a 'save' event.                                                                                                                             |
| Form              | onCancel            | Cancel the current form and go to the return page. If the current job has been modified or saved then the user will get asked if they wish to keep it.                   |
| Form              | onReturn            | Go to the return page                                                                                                                                                    |
| Form              | onSaveDraft         | Submit and save the current job as a draft.                                                                                                                              |
| Form              | onRefresh           | Reload the current form                                                                                                                                                  |
| SelectedItemsList | onAddItem           | Add the current item to the selection. This is normally used for BrowseObjects or a WebGrid action.                                                                      |
| SelectedItemsList | onOrderService      | This click handler assumes that the associated object is a service and will start the order process for it.                                                              |
| SelectedItemsList | onOrderServiceQuick | This click handler assumes that the associated object is a service and will add it to the list if it can be ordered 'quick' or will the order process will start for it. |



## Examples

### onRefresh

If customer has a dynamic ticket properties web.form then a refresh button may need to be added to force a refresh of external data in some of the controls, e.g. journal notes or assignment status. To do this edit the Web.Ticket.Properties.Toolbar on the service desk resource and add this button:

:::BlockQuote
   \<RibbonButton ID="refresh" Text="Refresh" ImageUrl="refresh sm grey" OnClientClick="onRefresh">
   \</RibbonButton>
:::


