PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Sub-fields (1.3, 1.6 as opposed to 1) not posting to Hubspot

  1. I am using the Hubspot API and posting to Hubspot contact lists successfully using Gravity Forms, but it looks as though the sub-field entries are not posting. Here is a log of my $entry array: http://pastie.org/6476327 . As you can see the sub-fields are getting posted, for example [6.3] => Rob but they are not getting passed to Hubspot, only the non-subs like [13] => Search Engine are getting passed. Here is my Hubspot sync function: http://pastie.org/6476358 which works just fine, other than the array entries with sub-fields (again, something like $entry[6.6] does not get passed, but something like $entry[6] does). Any ideas on why this might be? The only thing I can think of is the urlencode, is there another way to grab entry data after_submission ?

    Posted 11 years ago on Wednesday March 13, 2013 | Permalink
  2. You will need to quote those sub-field IDs, like this:

    $entry['6.6']

    Any field ID with a decimal in it should be quoted. You can quote all the others too if you like.

    Posted 11 years ago on Thursday March 14, 2013 | Permalink