Method 2: Subscribe to the Calculator event
Last updated
Was this helpful?
Last updated
Was this helpful?
The calculator also fires an event that advanced customers can use to gain better control, access the data from the calculator, and tell tell the website what to do next.
To use this method:
Login, open your desired calculator, and click "SHOW ADVANCED SETTING":
With the Advanced Settings, turn on "Disable CTA Redirection". This will prevent Calcumate from auto-redirecting to any CTA URLs, and instead hand control to your website after the Calcumate 'Booking' Javascript event fires.
Listen to the following event:
The event object contains all the detail of the calculation. Example:
You can write code to tell your website what to do next. For example, you can use the data from the Booking event to determine where to send the user to next (and potentially pre-fill certain details such as the unit type the user requires).