> For the complete documentation index, see [llms.txt](https://developer.acquire.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.acquire.io/widget/functioning-customization/events-callbacks/onagentassign.md).

# onAgentAssign

> The on function with event as update is to off the default behaviour when event occurs and trigger helps to manually fire the event update with the necessary parameters.

```
window.acquire = window.acquire || [];
acquire.push(function(app){
    app.on('update',function(){console.log(arguments)});
    app.trigger('update',1,2,3);
});
```
