In HubSpot, you'll need to adjust how Gravity Forms processes and sends the data to HubSpot. By default, when multiple files are uploaded, they are sent as a comma-separated list in a single field. To split them into separate values (like individual field values in HubSpot), you can consider the following options:
Create Custom Fields in HubSpot:
In HubSpot , create separate custom properties for each file (e.g.,File Upload 1,File Upload 2,File Upload 3), depending on how many files you expect to receive.
Map to HubSpot Fields:
In your Gravity Forms HubSpot integration (via the Gravity Forms HubSpot Add-On), ensure that you map the fields correctly:
Thank you for the suggestion! My only concern with this solution is that it would require adding two separate fields to our Gravity Form for file uploads. Currently, the existing File Upload field supports multiple file uploads. Is there no alternative solution to have the files split when they are sent to HubSpot? I appreciate your quick response. Thank you!
The existing File Upload field in Gravity Forms supports multiple file uploads, I can offer an alternative solution to keep everything within a single field while ensuring the files are properly split when sent to HubSpot. One way to achieve this is by using custom code or a third-party integration that processes the uploaded files before they are sent to HubSpot. The idea is to split the multiple files from the single upload field into individual file fields before they are transferred. This can be done with some custom development that:
Detects and splits the files from the Gravity Forms upload field.
Sends each file to a unique HubSpot property or as separate attachments.
Alternatively, you could use middleware like Zapier or Integromat (now Make) to create a more flexible solution for routing the files into HubSpot.
Thank you for the detailed explanation! I’m particularly interested in the custom development solution you mentioned for splitting files from the Gravity Forms upload field and sending each to unique HubSpot properties or as separate attachments.
Could you please elaborate on how this could be implemented, ideally with some example code or steps to achieve this without relying on middleware like Zapier or Integromat?
Your expertise and guidance would be greatly appreciated!