Autopopulate Form & Special Characters

  • Profile Image
    ballsmarketing
    Asked on October 08, 2013 at 05:39 PM

    when using the form at: http://form.jotformpro.com/form/32737136496967

    to autopoulate the form: http://form.jotformpro.com/form/32745597477976

     

    I have issues if the user eneters a special character, say within the address fields. (ie: address_2 = "#1285")

    the autopoulation fails

  • Profile Image
    Cesar
    Answered on October 08, 2013 at 05:54 PM

    Hello, 

    I'm not sure if understand the issue correctly. Are you trying to insert the character using url parameters? Do let us know so we can help you better. Thank you.

  • Profile Image
    ballsmarketing
    Answered on October 08, 2013 at 07:36 PM

    example 1 the url returned (I added the line breaks)

     

    http://form.jotformpro.com/form/32745597477976?

    propertyFor=Ranch%20House%20Kitchen&

    other=&

    payee[first]=Josh&

    payee[last]=Steenmeyer&

    attention=Josh%20Steenmeyer&

    email3=joshua.steenmeyer@gmail.com&

    contactNumber[area]=702&

    contactNumber[phone]=5232317&

    billingAddress4[addr_line1]=5201%20S.%20Torrey%20Pine%20Drive&

    billingAddress4[addr_line2]=#1284&

    billingAddress4[city]=Las%20Vegas&

    billingAddress4[state]=NV&

    billingAddress4[postal]=Las%20Vegas&

    billingAddress4[country]=United%20States&

    amountRequested=40000&

    todaysDate=10-08-2013&

    paymentDate=10-08-2013&

    puposeFor24=&

    paymentMethod=Check&

    checkDelivery=Pickup&

    useBilling=&

    newMailing[addr_line1]=&

    newMailing[addr_line2]=&

    newMailing[city]=&

    newMailing[state]=&

    newMailing[postal]=&

    newMailing[country]=&

    bankName=&

    bankAddress35[addr_line1]=&

    bankAddress35[addr_line2]=&

    bankAddress35[city]=&

    bankAddress35[state]=&

    bankAddress35[postal]=&

    bankAddress35[country]=&

    routingNumber=&

    accountNumber=&

    refereceInformation=&

    pickupLocation=Here

    will stop populating the second form as soon as it reaches addr_line2

     

    example 2:

     

    http://form.jotformpro.com/form/32745597477976?

    propertyFor=Ranch%20House%20Kitchen&

    other=&

    payee[first]=Josh&

    payee[last]=Steenmeyer&

    attention=Josh%20Steenmeyer&

    email3=joshua.steenmeyer@gmail.com&

    contactNumber[area]=702&

    contactNumber[phone]=5232317&

    billingAddress4[addr_line1]=5201%20S.%20Torrey%20Pine%20Drive&

    billingAddress4[addr_line2]=1284&

    billingAddress4[city]=Las%20Vegas&

    billingAddress4[state]=NV&

    billingAddress4[postal]=Las%20Vegas&

    billingAddress4[country]=United%20States&

    amountRequested=40000&

    todaysDate=10-08-2013&

    paymentDate=10-08-2013&

    puposeFor24=&

    paymentMethod=Check&

    checkDelivery=Pickup&

    useBilling=&

    newMailing[addr_line1]=&

    newMailing[addr_line2]=&

    newMailing[city]=&

    newMailing[state]=&

    newMailing[postal]=&

    newMailing[country]=&

    bankName=&

    bankAddress35[addr_line1]=&

    bankAddress35[addr_line2]=&

    bankAddress35[city]=&

    bankAddress35[state]=&

    bankAddress35[postal]=&

    bankAddress35[country]=&

    routingNumber=&

    accountNumber=&

    refereceInformation=&

    pickupLocation=Here

     

    will work fine. (the '#' is removed from the url) How can I prevent special characters?

  • Profile Image
    Cesar
    Answered on October 08, 2013 at 07:53 PM

    To use the Hash # kindly try using %23.

    Do let us know if this helps. Thank you.

  • Profile Image
    ballsmarketing
    Answered on October 08, 2013 at 07:57 PM

    If the enduser enters the hash tag how can I auto convert that to the equivelent %23 within the URL that is being passed to the new form?

  • Profile Image
    Cesar
    Answered on October 08, 2013 at 08:34 PM

    Hello, kindly check on the POST method to send the on one form to the other.

     

    Related Article:

    Send-POST-Data-From-JotForm-Using-PHP-in-Custom-Thank-You-Page

  • Profile Image
    EltonCris
    Answered on October 08, 2013 at 11:58 PM

    @ballsmarketing

    In addition to my colleague, here's how to encode symbols on users data.

    Use URLENCODE tag on the field variables. This encodes any symbols on the URL query.

    Example:

    http://form.jotformpro.com/form/32745597477976?name={URLENCODE:name12}

    Hope this helps. Thanks!