Why are spaces being removed when prepopulating forms?

  • johnfleischauer
    Asked on February 9, 2016 at 3:11 PM

    When prepopulating forms, spaces are being randomly removed in the populated fields. I had assumed that it was simply that the URL was being parsed without the spaces, but I've recently had submissions where only some of the spaces are removed.

  • Boris
    Replied on February 9, 2016 at 5:47 PM

    The issue with the space characters doesn't always manifest itself in all fields, but you are correct that the issue is in characters getting parsed incorrectly when used for prepopulating URLs, especially on values for fields such as Text Area.

    In order to make the fields forward their data in URL friendly way, you may want to add the URLENCODE parameter/flag to your form field tags:

    http://www.jotform.com/help/164-How-to-Pass-Values-to-the-Text-Area-of-a-Form-via-URL-encoding

    Please let us know if this fixes the issue you are having. If you need further assistance, kindly provide us with an example link and form that are displaying such behavior, and we will be happy to look for possible ways to fix it. :)