How can I make a hidden field, which will include the URL of the page on which I put the form?

  • Profile Image
    tada
    Asked on October 03, 2012 at 02:01 PM

    I want to create a feedback form for design mockups.

    I have a self hosted WordPress site.  When I have a web design mockup for a client, I am creating a page and inserting a nextGen Gallery with the designs on the page.  Then I send the client the URL to visit the page and view the mockups.

    What I am trying to do, is have the client be able to either:

    a) Purchase the web development package directly from the page (I already have that part covered)

    b) If they want a revision to the design, I want them to fill out a form on the page.  Then I want the form contents emailed to me (no problem with that so far).

    I want to create a hidden field on the form, which will be passed through in the email.  The problem is, I want that field to be the URL of the current page (I will be using the same field on each page of mockups), so I know which mockup they are providing feedback about.  I don't see a way to do this with the hidden field item in the form builder.

  • Profile Image
    NeilVicente
    Answered on October 03, 2012 at 03:02 PM

    You can use a custom script to get the URL value of the page where the form is embedded, and then pass it onto your form's hidden field.

    Here's a guide that contains all the information you need:

    http://www.jotform.com/help/95-How-to-Know-the-Exact-URL-of-a-Page-From-Which-a-Submission-Came

    If you encounter any difficulty, please feel free to ask for assistance. Thanks!