We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
May 9, 2019 11:08 AM
I am embedding a form on an external site on several different pages. I want to create a workflow based on what page the user submitted the form from. Example: If the user was on this url then send this email. If not then check if he was on one of the other url’s and so forth. I have tried pulling the page url into a hidden filed of a property I created but does not seem to trigger the workflow or pull any data. I am using this code where “web_url” is my property name: onFormReady: function( $form) {$('input[name="web_url"]').val(window.location.href).change();} Any ideas on how to solve this issue? Is this the right approach or should I try setting up the workflow a different way?
May 13, 2019 12:52 PM
Welcome, @dimitreliasb.
Your approach is sound and your code looks good from here.
To clarify, does the form submit successfully, just without the hidden field populated? If so, could you share the following via direct message?
Isaac TakushiAssociate Certification Manager |
May 13, 2019 4:47 PM
Hi Isaac,
Thanks for responding. Yes the form does submit correctly and triggers the workflow. It is just the hidden field value (in my case the URL) I cannot seem to pass. I will get you a sample soon. working on a dev platform and its not accesible outside our building.
Basilios
Jun 14, 2019 9:21 AM