Hello,
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.
Any idea?
Thanks,
András
Hello @ANagy7
In Contact Form 7, add a hidden field to your form by inserting the following code into your form’s HTML code:
<input type="hidden" name="subscription_type" value="Subscribed" />
This will create a hidden field named “subscription_type” with the value set to “Subscribed”.
In the Contact Form 7 editor, find the “Additional Settings” section and add the following code:
on_sent_ok: "ga('send', 'event', 'Contact Form', 'submit', 'Subscribed');"
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.
Hi Himanshu,
sounds good, thank you very much!
I will try.
My current workaround is that I set a required acceptance field checked by default.
Best,
András