We want to host the IS form on our site. We also want to use the same form for multiple channels like PPC, FB etc. The links to our pages will include the source (for example we could use utm_source =FBAd).
I want to extract the lead source value from the URL param and set the Leadsource value when the user submits the form. So I tried creating a form with the Leadsource as a hidden field. However, when I use the HMTL code (unformatted), I see the hidden field but it does not have the id associated with the Leadsource field. Other fields like name and email have the id so I can set the value by using the Java script code document.getElementById(‘inf_field_FieldName’).value = getUrlParameter(‘utm_source’);
I am not a Java script expert so I am assuming there is another way to accomplish this. Hopefully, I am not the only one attempting to do something like this.