In USD, we can call the FireEvent action to fire an event in our action call.
For example, let’s add a new event to Contact hosted control:
Give the event a name, e.g. EventWeWillRun:
In the event, we will create an action called DisplayAMessage, that will display some text, e.g. “Event has been called!”:
The event should now look like this:
With the event created on the contact:
Now, let’s call this event after the BrowerDocumentComplete event fires for the same Contact hosted control:
Add a new action. We will fire this event using the FireEvent action:
It should now look like:
Now let’s run USD and click on a contact.
We can see our event is called through the FireEvent action: