We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18331
    • 20 Posts
    I need that Eform report would include page URL from which form was submited. How could I do that?

    Found a solution for that:

    Just made one more input to the form. Value is set to the page full URL in which you are at the moment. Also using div id to hide that input at front end.

    <div id="hidden"><input type="text" name="pageURL" value="[(site_url)][~[*id*]~]" maxlength="60" size="20"> </div>
    


    CSS:

    #hidden {display:none;}
    


    Added it to Thanks tpl:

    <a href="[+pageURL+]">[+pageURL+]</a>
    


    Now everything works perfectly:) Just wondering if there is any solution to make it easier, like using placeholder or something.
      • 32316
      • 387 Posts
      You really do not need the div, and the css to hide it.
      Just use
      <input type="hidden" name="pageURL" value="[(site_url)][~[*id*]~]" />
        • 18331
        • 20 Posts
        Tried that at first. But got error from validation: "[undefined] » Tampering attempt detected!". So did it over css.
          • 5340
          • 1,624 Posts
          You need for force a validation on the hidden field

          I use this to send the title of the page
          <input type="hidden" name="appName" value="[*pagetitle*]" eform="Form Name::1::#REGEX /[*pagetitle*]/" />


          Maybe it works for your url

          Cheers
            • 18331
            • 20 Posts
            Thanks cipa! Getting same "[undefined]" with your code. My solution for hidding it by css working well, so I think it’s time to change the subject to solved:) Thanks again!:)