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 can I add linebreaks in the default value for a text area

    Asked by clayray on April 09, 2014 at 02:38 AM

    In my Facebook form, I have a text area that needs a message as the default value, similar to

    Dear Manufacturer,

    I would like etc etc ....

    But the default value won't accept Enter characters. I have tried inserting <br/>, which produces a break but strangely leaves the html tag in the text as well (with another break), AND adds 12 space characters at the start, so it looks like this..

               Dear Manufacturer,

               <br>

               I would like etc etc ....

    I have read some articles on pre-populating using javascript, but that seems an extraordinary length to have to go to to simply add a line break.

    Thanks for your assistance.

    message length line break assistance
  • Profile Image
    JotForm Support

    Answered by ashwin_d on April 09, 2014 at 04:35 AM

    Hello clayray,

    You need to simply format the text content in a notepad on how you want to display and copy / paste it in the "Default Value" property of your "Textarea" field and it will retain the formatting of new line.

    Please check the screenshot below on how to do this:

    Please take a look at the following cloned form:  http://form.jotformpro.com/form/40982022060949?  Feel free to clone this form for a closer look. The following guide should help you in form cloning:  https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL

    Hope this helps.

    Do get back to us if you have any questions.

    Thank you!