Pushing Data from Form to Create Contact and Company in Hubspot

Hi all,

I’ve created a on my website and upon submitting the form I want to populate several User Created Fields, however I am getting Null.

User Created Fields:

delivery_partners: configured in form as multiple choice, configured in HS as multiple choice checkbox

interested_services: configured as multiple choice on form but since it is bound to change, I have created a text field where the services are injected as text separated by commas.
Received form data: {
name: ‘German Escobar’,
email: ‘german@yahoo.com’,
phone: ‘(555) 123-4567’,
restaurant: ‘El German’,
numberOfLocations: 1,
monthlyOrders: ‘450’,
restaurantType: ‘Food Truck’,
serviceInterests: [ ‘1iNCZIPqe2ooM3uSExxamF’, ‘3bRvhntZsax5gMKh4hQOC7’ ],
deliveryPartners: [ ‘Uber Eats’, ‘DoorDash’ ],
posSystem: ‘Square’,
notes: ‘I need your help!’
}
Validated data: {
name: ‘German Escobar’,
email: ‘german@yahoo.com’,
phone: ‘(555) 123-4567’,
restaurant: ‘El German’,
numberOfLocations: 1,
monthlyOrders: ‘450’,
restaurantType: ‘Food Truck’,
serviceInterests: [ ‘1iNCZIPqe2ooM3uSExxamF’, ‘3bRvhntZsax5gMKh4hQOC7’ ],
deliveryPartners: [ ‘Uber Eats’, ‘DoorDash’ ],
posSystem: ‘Square’,
notes: ‘I need your help!’
}
Raw form data: {
restaurant: ‘El German’,
numberOfLocations: 1,
monthlyOrders: ‘450’,
restaurantType: ‘Food Truck’,
posSystem: ‘Square’,
deliveryPartners: [ ‘Uber Eats’, ‘DoorDash’ ],
serviceInterests: [ ‘1iNCZIPqe2ooM3uSExxamF’, ‘3bRvhntZsax5gMKh4hQOC7’ ]
}
Transformed company data for HubSpot: {
name: ‘El German’,
number_of_locations: 1,
average_monthly_orders: ‘450’,
restaurant_type: ‘food_truck’,
pos_system: ‘square’,
delivery_partners: ‘uber eats;doordash’,
interested_services: ‘1iNCZIPqe2ooM3uSExxamF;3bRvhntZsax5gMKh4hQOC7’
}
Name transformation: {
original: ‘German Escobar’,
firstName: ‘German’,
lastName: ‘Escobar’
}
Transformed contact data for HubSpot: {
firstname: ‘German’,
lastname: ‘Escobar’,
email: ‘german@yahoo.com’,
phone: ‘(555) 123-4567’,
company: ‘El German’,
notes: ‘I need your help!’
}
Transformed company properties: {
name: ‘El German’,
number_of_locations: 1,
average_monthly_orders: ‘450’,
restaurant_type: ‘food_truck’,
pos_system: ‘square’,
delivery_partners: ‘uber eats;doordash’,
interested_services: ‘1iNCZIPqe2ooM3uSExxamF;3bRvhntZsax5gMKh4hQOC7’
}
Transformed contact properties: {
firstname: ‘German’,
lastname: ‘Escobar’,
email: ‘german@yahoo.com’,
phone: ‘(555) 123-4567’,
company: ‘El German’,
notes: ‘I need your help!’
}
Incoming form data before HubSpot transformation: {
name: ‘El German’,
numberOfLocations: 1,
restaurantType: ‘food_truck’,
posSystem: ‘square’,
deliveryPartners: ‘uber eats;doordash’,
serviceInterests: ‘1iNCZIPqe2ooM3uSExxamF;3bRvhntZsax5gMKh4hQOC7’,
monthlyOrders: ‘450’
}
Search response: CollectionResponseWithTotalSimplePublicObjectForwardPaging {
total: 0,
results: []
}
Transformed HubSpot properties: { delivery_partners: ‘’, interested_services: ‘’ }
Final properties being sent to HubSpot: {
properties: {
name: ‘El German’,
number_of_locations: ‘1’,
average_monthly_orders: ‘450’,
restaurant_type: ‘food_truck’,
pos_system: ‘square’,
delivery_partners: ‘’,
interested_services: ‘’,
website: ‘’,
industry: ‘HOSPITALITY’,
type: ‘PROSPECT’
}
}
Creating new company
Create response: SimplePublicObject {
createdAt: 2025-02-12T21:14:50.543Z,
archived: false,
id: ‘29902247340’,
properties: {
average_monthly_orders: ‘450’,
createdate: ‘2025-02-12T21:14:50.543Z’,
delivery_partners: null,
hs_annual_revenue_currency_code: ‘USD’,
hs_lastmodifieddate: ‘2025-02-12T21:14:50.543Z’,
hs_num_blockers: ‘0’,
hs_num_child_companies: ‘0’,
hs_num_contacts_with_buying_roles: ‘0’,
hs_num_decision_makers: ‘0’,
hs_num_open_deals: ‘0’,
hs_object_id: ‘29902247340’,
hs_object_source: ‘INTEGRATION’,
hs_object_source_id: ‘7840950’,
hs_object_source_label: ‘INTEGRATION’,
hs_pipeline: ‘companies-lifecycle-pipeline’,
hs_task_label: ‘El German’,
industry: ‘HOSPITALITY’,
interested_services: null,
lifecyclestage: ‘lead’,
name: ‘El German’,
num_associated_contacts: ‘0’,
num_notes: ‘0’,
number_of_locations: ‘1’,
pos_system: ‘square’,
restaurant_type: ‘food_truck’,
type: ‘PROSPECT’,
website: null
},
updatedAt: 2025-02-12T21:14:50.543Z
}
Created/Updated company with ID: 29902247340
Creating/updating contact with properties: {
firstname: ‘German’,
lastname: ‘Escobar’,
email: ‘german@yahoo.com’,
phone: ‘(555) 123-4567’,
company: ‘El German’,
notes: ‘I need your help!’
}
Creating associations between contact 98943598120 and company 29902247340
Successfully created association
Created contact with ID: 98943598120

Hi @FabioEscobarFS

"Could you explain how you are sending data to HubSpot?

for information, there are several ways to send data from Form submission to HubSpot.
1. map the LP form with the HubSpot form in the backend and on submission submit both the forms.
2. Read all the value in backend and using create contact API you can send data to HubSpot. You can all the properties you have created using their internal name from this.
3. you can also use HubSpot form in LP."

I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Thanks!