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

    populate hidden field with many custom url's

    Asked by r324 on January 25, 2016 at 09:58 PM

    I wish to have a hidden field populate with the url. The url's are unique but on the same domain.


    Ex1. If someone types the code R/H1234, they will be redirected to the page
    mysite.com/R/H1234 where the  form is embedded

    Ex2. If another visitor's code is P/LL3, they will get redirected to the page
    mysite.com/P/LL3

    Ex3. If a third visitor's code (A.234 is part of a subdomain, they will get redirected to A.234.mysite.com

    So I would like to be able to have the unique portion of the domain or if easier to do , just have the entire domain populated into the hidden field. This will allow me to know who has visited their form.

     

    thanks

     

    custom url hidden populate hidden domain unique thanks
  • Profile Image
    JotForm Support

    Answered by Charlie on January 26, 2016 at 03:30 AM

    I checked your account but I don't see any forms on it.

    I'm not quite sure how your form works as a whole. If you want to redirect your user after submission to a specific URL, you can do that by setting up a conditional logic. Here's a guide to learn more about it: http://www.jotform.com/help/317-Change-Thank-You-URL-upon-a-condition-is-met-.

    If you just want to append a form field's value on the thank you URL, that is possible. Here's a sample:

    1. Here's my test form: https://form.jotform.com/60251263339956 

    I have added a simple text box named it "Code on URL".

    2. I want to append the code on my thank you page URL, my sample thank you URL is http://google.com/{codeOn}

    The {codeOn} tag is my "Code on URL" field name tag, you can find it on your form's properties.

     

    3. In your "Thank You" setting, just append the URL with the field name tag.

     

    4. Here's a test submission, noticed I added a code "code1234" on my simple text box, then it navigated to http://google.com/code1234 

     

    Let us know if that works.