Custom event handler
You can add a custom event handler to the button click, if necessary. The instructions below will help you with this.
When you click on the Spin Wheel button, the script performs the function:
window.wheelWidgetSpinEmit()
Therefore, you need to initialize the desired function, and assign it to the window
object. Example:
function yourFunction() {// do something}window.wheelWidgetSpinEmit = yourFunction
Learn more from our example on Codepen:
After successful validation of the data in the form, before spinning, the widget will try to perform this function.