• Resolved jmitzeama

    (@jmitzeama)


    As I am including the same contact form in many similar pages, I am looking for a simple way to identify the particular page that the user has sent the form from.
    I hoped I could simply change the permalink of each page manually. That way I would have included a variable in the link and filled that into a hidden field via the GET-function, but WordPress doesn’t allow me to enter ? or = in the permalink.
    Is it possible to alter the following two lines of code in a way that Contact Form 7 can work with it?

    <script>document.getElementById('txtUrl').value = window.location.href;</script>
    <input type="hidden" "name="txtURL" id="txtUrl" name="txtUrl" value="" />

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hey there, @jmitzeama!

    This is the support forum for HappyForms, we suggest you forward your question to the Contact Form support team. They’re surely better equipped to help you on this one! 🙂

Viewing 1 replies (of 1 total)

The topic ‘Send current URL via hidden field’ is closed to new replies.