How can I add line breaks in the 'conditions' output for textarea

  • autoequip
    Asked on August 22, 2014 at 12:33 PM

    I have a form with conditions. If dropdown A is selected, I would like the textarea below to be populated with a list of items, in bullet format, or even by line. Currently the 'conditions' corrects each entry into one continuous line, example below. 

    If A is selected in the dropdown, the textarea ideally would look like this. 

    option1
    option2
    option3

    But no matter what I do the conditions changes it to

    option1option2option3

    How can this be fixed?

    Thanks!

  • David JotForm Support
    Replied on August 22, 2014 at 1:56 PM

    Hi,

    The only way I can find to do this, is to actually add spaces until your information appears where you want it.  Here is my cloned version of your form so you can see what I mean:

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

    If you select the first option, the options appear the way you would like them to.  But for the equation it just looks something like this:

    option1                               option2                               option3

    Let us know if this works for you and if it doesn't we will see what else we can come up with.

    Thank you for using JotForm!

  • autoequip
    Replied on August 22, 2014 at 2:04 PM

    Hi David,

    Thanks that looks good, however I don't think it will work. There is one additional step I left out. 

    When the data is loaded into the form, and the user clicks submit, I will be passing along the field data into a webpage. Basically I am creating an easy to use Craiglist ad generator. The employee here selects the product, it loads in the data, clicks 'send' and it will give us the raw HTML to easily post to Craigslist. 

    If we use spaces when we post the HTML it will not work since it will not word wrap from line to line. 

    Does that make sense?

    Thank you!

     

     

     

    The full HTML does not work with the conditions. Can you try it? It does not populate....

  • Welvin Support Team Lead
    Replied on August 22, 2014 at 3:52 PM

    I can't find a workaround for this. Maybe, add the full HTML to the result instead of just the text. That should do it.

    Thank you!