Skip to content

Instantly share code, notes, and snippets.

View asadmalik's full-sized avatar

asadmalik

  • Pakistan
View GitHub Profile
@asadmalik
asadmalik / zoomInfo.js
Created July 30, 2021 17:19 — forked from araphiel/zoomInfo.js
ZoomInfo + Marketo Form - Hides form fields with ZoomInfo returned data
// 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.')