What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

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

    Asked by tada 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.

    Page URL:

  • Profile Image
    JotForm Support

    Answered by NeilVicente 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:


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