• Resolved krischase

    (@krischase)


    If you fill in a form that has validation setup in Gravity forms, and there are errors in your data, gravity forms will present those errors to the end user, but at the same time, the data is actually fired off and sent to hubspot.

    In the event that the data being entered into the form is wrong, field validation should prevent the data from making it to hubspot.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Chris Lagasse

    (@soben)

    I will have to look at this. This is using GravityForm’s handler… and followed their instructions on how it should work. Strange that it’s doing this.

    Thanks. I will try to fix asap.

    Thread Starter krischase

    (@krischase)

    Awesome – Thanks! I tried digging through the code to figure out which hook you were using in gravity forms.

    From what I can tell, it’s just a simple matter of you updating the hook you’re using, to something that happens AFTER validation.

    —–
    In my case, what I’m seeing is that if you fill in the form and don’t put in the right data, then gravity forms will error out and make you correct the validation issues, but at the same time, it’s firing off and submitting that lead into HubSpot.

    Let me know if there’s anything I can do to help.

    Plugin Author Chris Lagasse

    (@soben)

    Hey kris,

    I have reviewed my code, dug into the documentation over at gravityhelp.com, and even started a support over at Gravity Forms proper to ask them, as I was quite confident that the process_feed only works upon success, and I have found zero information that my code would be handling this pre-validation.

    Their response on my support ticket:

    The add-on frameworks process_feed method is only triggered after the entry has been saved to the database. I installed the HubSpot add-on and setup a test form and feed, I found process_feed was only triggered once as designed. I did not experience it running during form validation.

    Perhaps they have some custom code running on their site which is triggering feed processing earlier, for example, we have seen a few users who are also running the Partial Entries add-on using one of its hooks to trigger MailChimp feed processing when a partial entry is created, which can occur during validation and even before the form is submitted e.g. https://www.gravityhelp.com/documentation/article/gform_partialentries_post_event/#1-trigger-mailchimp-feeds

    That said, The way HubSpot handles data is that it’ll overwrite Contacts (though not necessarily the form submission)… so even if there’s any validation and there’s a premature send via your code… it’ll replace the Contact’s information with the correct information afterwards.

    But at this point, this problem does not seem to exist because of my code.

    Thread Starter krischase

    (@krischase)

    Hey Chris,

    Really appreciate your update / feedback.

    I’m going to go through their plugins to determine if there’s anything that might trigger that sort of behaviour. At a quick glance there’s nothing that should be overriding that though.

    Also, your note about the ‘updates’ in hubspot, I totally discovered as well. I let my client know, but unfortunately they just keep sending me emails everything hubspot triggers, but mailchimp doesn’t… :p

    Thread Starter krischase

    (@krischase)

    I’m beginning to wonder if it has anything to do with the Mailchimp add-on… Hmm, any thoughts on that?

    Plugin Author Chris Lagasse

    (@soben)

    Hey Kris,

    Sorry for the delay on this. It’s been a busy couple of weeks.

    Unfortunately I don’t have any feedback or thoughts on the Mailchimp add-on’s interactions with Gravity Forms. Definitely curious, though.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Data being sent to hubspot prior to fields being validated’ is closed to new replies.