I have a page where I am taking a URL parameter (phone number) and placing it in a cookie via javascript. Is it possible to then take that cookie value (Custom created cookie, not hubspot cookie) and pass the value into a hubspot form? The only info I could find on this was related to passing URL parameters to a hubspot form, but not cookie values.
@bjones - If it's an embed code form, you can use the onFormReady callback function to read the cookie with js and use jQuery to add it to a value in a form field
@bjones - Hey, yes, that is correct, you would have to use the embed code which is possible and I literally just answered that question today here. If you don't want to use the onForm callback, you can always use the global callbacks found here. I've actually never tested them with the Forms Module but, I think they will work.
@bjones - If it's an embed code form, you can use the onFormReady callback function to read the cookie with js and use jQuery to add it to a value in a form field
@tjoyce I Am finally getting back to this. When I look at the onFormReady function, it seems like that requires me to manually embed the form with hbspt.forms.create(), vs using the page editor and selecting the form. Am I right in this assumtion or is there another way to utilize the onFormReady function?
@bjones - Hey, yes, that is correct, you would have to use the embed code which is possible and I literally just answered that question today here. If you don't want to use the onForm callback, you can always use the global callbacks found here. I've actually never tested them with the Forms Module but, I think they will work.