DisplayField with Multiline Input

  1. #1

    DisplayField with Multiline Input

    Hi all, please excuse the noddy nature of this query, but I was wondering if there is a way to instruct a displayfield to render text on several lines.

    I've tried inserting <br>'s or \n's with no joy.

    I did switch the control to a textarea, but if I try to fiddle the formatting on this control I get a weird 10px gap at the top, so I've discounted that as an option for the time being.

    Is there are easy way to make a displayfield render multiline output, or format a textarea with a background colour, that avoids the odd gap I'm seeing at the top?

    Cheers,

    Doug
  2. #2
    Hi,

    <br/> tag should work
    Are you sure that HtmlEncode property of DisplayField is false (it is default value)?
  3. #3
    Hi Vlad, thanks for the pointer on this one,

    You're right, if I set htmlencode to false the <br/>'s render ok, what's strange is that I hadn't explicitely turned this property on.

    I expect some other part of the project was setting the default without me noticing,

    Thanks again,

    Doug

Similar Threads

  1. [CLOSED] Multiline tab
    By majestic in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Aug 17, 2017, 4:25 PM
  2. Replies: 1
    Last Post: Apr 24, 2012, 3:38 AM
  3. Problem with multiline textfield.
    By jmilton in forum 1.x Help
    Replies: 1
    Last Post: Oct 11, 2010, 2:20 PM
  4. [CLOSED] Multiline combobox
    By 78fede78 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 04, 2010, 2:26 PM

Tags for this Thread

Posting Permissions