I use HubSpot with ContactForm7 plugin and I mapped my forms with the corresponding forms created in HubSpot. The only thing is that I cannot manage a value - I want to set it to "Subscribed" - to a subscription type.
I wouldn't use a separate checkbox when sb contacts me, he/she wants a reply.
This code will trigger the event when the form is submitted successfully. when a user submits the Contact Form 7 form, the hidden field "subscription_type" with the value "Subscribed" will be sent to HubSpot, and the corresponding contact property will be set to "Subscribed" for that contact.