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

    Prepopulated form - do ampersands work?

    Asked by mschmitt on September 28, 2015 at 01:41 PM

    At the attached prepopulated URL, everything is correctly auto-filling except for the bold section below. Is the ampersand causing a problem?

     

     

    http://form.jotformpro.com/form/52446564402958?description={ecrmGen=a3Ja0000000TVou&siteName=AT&T%20-%206301%20BIXBY%20RD,%20CANAL%20WINCHESTER,%20OH%20(L34119)&siteAddress=6301%20BIXBY%20RD&address2=&city=CANAL%20WINCHESTER&state69=OH&zip75=43110&genLocation=back%20of%20building&generatorName=&generatorMake53=Spectrum%20Detroit%20Diesel&generatorModel=400DS60&generatorSerial=339411&generatorRated50=400&fuelType=Diesel&engineMake54=&engineModel=&engineSerial=&engineManufacture=&engineOutput=0&engineOutput38=}

    Page URL:
    http://form.jotformpro.com/form/52446564402958?description={ecrmGen=a3<br/>Ja0000000TVou&amp;siteName=AT&amp;T%20-%206301%20BIXBY%20RD,%20CANAL%2<br/>0WINCHESTER,%20OH%

    Screenshot
    ampersands work prepopulated problem section ampersand attached
  • Profile Image
    JotForm Support

    Answered by Charlie on September 28, 2015 at 02:14 PM

    Hi,

    If you use the hard coded ampersand/"&", it tells the URL that you are adding another parameter on it. The field name and values are separated by "&". If you want to add an "&" in the actual prepopulated value, you need to use the converted ASCII element of it. In this case, "&" = "%26"

    Here's a reference: http://www.w3schools.com/tags/ref_urlencode.asp

    This is how the URL should look like, assuming you are only referring to "AT&T" value:

    http://form.jotformpro.com/form/52446564402958?description={ecrmGen=a3Ja0000000TVou&siteName=AT%26T%20-%206301%20BIXBY%20RD,%20CANAL%20WINCHESTER,%20OH%20(L34119)&siteAddress=6301%20BIXBY%20RD&address2=&city=CANAL%20WINCHESTER&state69=OH&zip75=43110&genLocation=back%20of%20building&generatorName=&generatorMake53=Spectrum%20Detroit%20Diesel&generatorModel=400DS60&generatorSerial=339411&generatorRated50=400&fuelType=Diesel&engineMake54=&engineModel=&engineSerial=&engineManufacture=&engineOutput=0&engineOutput38=}

     

    If there are some missing values, let us know. You can also refer to this guide about prepopulating form URL: http://www.jotform.com/help/71-Prepopulating-fields-to-your-JotForm-via-URL-parameters 

    I hope that helps.

  • Profile Image

    Answered by mschmitt on September 28, 2015 at 02:52 PM

    That answers my question, thanks!

  • Profile Image

    Answered by Ben on September 28, 2015 at 03:19 PM

    In my colleague's name you are welcome.

    Do let us know if you have any further questions and we would be happy to assist with them.