Send current URL via hidden field
-
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]
The topic ‘Send current URL via hidden field’ is closed to new replies.