populate hidden field with many custom url's

  • Profile Image
    Asked 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

    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.




  • Profile Image
    Answered 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.