Skip to main content

Copilot Enhancements: Your AI-Powered Assistant and Strategic Superpower.

Learn More

Testing open BookIt after selecting a checkbox on the form

09/12/23: First Try – I found a way to fire a script if the person selects the checkbox and clicks on submit.
Next steps are:

  • Checking if the form is working correctly and getting the data if the person doesn’t select the checkbox
  • Checking if the form is working correctly and getting the data if the person selects the checkbox
  • Checking how to add the BookIt code there.

09/19/23: Second try – The script works, and after removing the return false from the code, the popup showed up and the data filled on the form was submitted to Marketo.

09/19/23: Third try – The form works fine, checking or not checking the checkbox.

Next step: How to fire the BookIt Script here as well. Perhaps a global function?

09/22/23: Fourth try – I found a way to open BookIt if the person selects the checkbox, but since the form is still submiting it reloads the page.
What can we do?

10/05/23: Fifth Try – The thing is that we need to make BookIt to load it before firing, but I still don’t know how to load the function but only fires if the user checks a checkbox.