Can I include a unique URL

  • Profile Image
    ntslik
    Asked on October 02, 2010 at 10:13 AM

    Basically If I wanted to create a comments form which used the same form across 1000 products but in order to understand which product they are leaving a comment for can the form submission includes it URL or i.e URL Page name

  • Profile Image
    aytekin
    Answered on October 04, 2010 at 09:18 AM

    You should probably add a hidden field to your form. Then you can pre-populate it from the URL.

    Example: Let's say you added a "Page Name" hidden field to your form. Here is what your URL would look like:

    http://www.jotform.com/form/123456789?PageName=product1

     

    Note that "PageName" is usually whatever you entered on the question minus the special characters like spaces. But if you are not sure you can find it out from the email wizard.

  • Profile Image
    ntslik
    Answered on October 04, 2010 at 11:53 AM

    i think i understand but do you know what html string i need to add with over 2000 products i would need the form to be placed within the product template but to send me the url it came from so i could determine what product they are looking at as each product is listed in the url

  • Profile Image
    aytekin
    Answered on October 04, 2010 at 02:28 PM

    Well, then you will need to populate the product name into the URL dynamically. How do you show the product names on the page. If you use php, you probably show it like this:

    <?=$product['name'] ?>

    If you are doing this, then your link would look like this:

    target="_blank" href="http://www.jotform.com/form/123456789?PageName=<?=$product['name'] ?>"