Automatically route every new form submission into your CRM with lead scoring tags, and notify your sales channel in Slack.
// Zapier "Code by Zapier" step — clean a lead before it hits your CRM
// inputData: { name: " jOhn doe ", email: " JOhn_Doe@Gmail.com " }
const name = (inputData.name || "")
.trim()
.toLowerCase()
.replace(/\b\w/g, (c) => c.toUpperCase());
const email = (inputData.email || "").trim().toLowerCase();
output = { name, email, valid: /.+@.+\..+/.test(email) };