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

    How about passing data to a textarea field that needs new line character

    Asked by nationwidedm on July 11, 2012 at 03:11 AM

    How about passing data to a textarea field that needs new line characters?



    This is a re-post of a comment on Prepopulating Fields to Your JotForm via URL Parameters

    textarea textarea field line break prepopulate prepopulation carriage return new line line feed text area
  • Profile Image
    JotForm Support

    Answered by jonathan on July 11, 2012 at 06:11 AM

    Hi,

    Can you please provide us more details on what you want to achieve on the form?

    You can pre-populate a text area using the method explained in the guide... but what do you mean by 'needs new line character...'

    Will await your response.

    Thanks.

  • Profile Image

    Answered by nationwidedm on July 11, 2012 at 11:43 AM

    I'd like the text within the textarea box to be separated by newline characters

     

    I know that I can space the data like this ?fieldname=item1%20item2%20item3

     

    but that would just put them all on the same line, I'd like the textarea to be prefilled and looking like this:

     

    item1

    item2

    item3

     

    (multiline textarea box)

  • Profile Image
    JotForm Support

    Answered by NeilVicente on July 11, 2012 at 12:02 PM

    @nationwidedm

    Use %0A to add a line break to the value you want to prepopulate a field with.

    For more URL encoded characters, please visit the link below

    http://www.degraeve.com/reference/urlencoding.php