Skip to main content
Kinetic Community

Event Custom Code

Custom code can be configured for a custom action event with the custom_code function. The custom_code function takes one string argument, the custom JavaScript code to be executed by the event.

Creating Event Custom Code

custom_code "alert('Hello World!');"

The custom code above is for a custom action event that will simply open an alert window when the event fires, displaying the message “Hello World!”