Pre-fill form from Hubspot
Use a user email to pull their Hubspot data and pre-fill form fields
Overview
Rule Logic
// Get user's entered email
const email = hubspotEmail.value;
const API_ENDPOINT = `https://api.hubapi.com/contacts/v1/contact/email/${email}/profile`;
// Issue request to HubSpot to fetch contact data
const data = await feathery.http.GET(API_ENDPOINT);
const properties = data.properties;
// Update Feathery fields with data pulled from Hubspot
hubspotFirstName.value = properties.firstname.value;
hubspotLastName.value = properties.lastname.value;API Connector
Last updated
Was this helpful?