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

    Auto populate a field with the current web page?

    Asked by shopmfp on October 19, 2011 at 11:32 AM

    Is there a way to have one of the fields autopopulate the name of the web page where the form is located?

     

     

     

    Kevin

  • Profile Image
    JotForm Support

    Answered by abajan on October 19, 2011 at 02:47 PM

    If you are asking if there's a way to have a field autopopulated with the name of the web page in which it resides, yes, I think this should be possible because the name (title) of a web page is just part of the document object. Let me see if I can come up with something in a few hours (unless of course, someone else provides the solution before I do).

  • Profile Image
    JotForm Support

    Answered by abajan on October 19, 2011 at 08:43 PM

    Okay, I'm not sure if you want the form to change the title of the page or the title of the page to appear in one of the form's fields but if it's the latter, I've found a solution: Embed the full source of the form into your web page and just before the closing body tag, place this block of JavaScript, substituting the ID of the input tag for your specific form.

    To better understand what I'm referring to, search for input_6 in the source of this page.

    However, if you wanted to find out the page from which a submission came, have a look at this user guide article and this forum thread.