How can I add linebreaks in the default value for a text area

  • Profile Image
    clayray
    Asked 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.

  • Profile Image
    ashwin_d
    Answered 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!