ASAP API detect users' actions

ASAP API detect users' actions

I'd like to know when user click on add tick button, so I can prefill/clear subject and description in the form.
Or notify me when user submit a ticket, so I can clear these fields

When a user click on report bug on my web app, I will open asap add ticket tab and prefill subject and description. But after them submit the ticket and click on add ticket by themsleves, these prefills are still there.