This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ZoomInfo + Marketo Form Listener | |
// Created to display or hide fields that are already validated by ZoomInfo | |
// This script does the following: | |
// 1. Adds initial state to the ZoomInfo + Marketo form (to hide init values) | |
// 2. Prevents non-validated users from completing the form. | |
// @variable form expects a Marketo "form" object (standard part of Marketo form js api) | |
function zoomListener(form) { | |
if (!form) throw new Error('Marketo Form Element not supplied.') |