URL info from Form Fill

Hi All,

Im looking to run a bunch (over 100) of landing pages for a client which all need forms on them.
Im trying to streamline the amount of forms I have to build/duplicate so was wondering if i was to use the same form on multiple pages, is there a way to import the information of the webpage (url) they have filled it from?

Chat Help came back with hidden form fields and custom coding the seperate urls used as dynamic values, which should work - but also be very time consuming.

Just wondering if anyone else has come across this and / or has any ideas for an easier solution?

thanks,

Hey. I’m an amateur at programming but seeing as nobody else has replied, I’m posting in case it helps.

I would begin experimenting with using a hidden form field and populating it using javascript when the page has loaded with the value of window.location.href

Using document.getElementById or document.getElementsByName

So something like this somewhere in the head of the page:

window.addEventListener('load', function () {
  document.getElementById('id_of_text_field').value = window.location.href;
})    

I haven’t tried this to be sure it works - I’m sorry - but hopefully it’ll get you somewhere.