Line breaks missing - InfoPath Dev
in

InfoPath Dev

Line breaks missing

Last post 04-22-2013 02:01 PM by Jay@Work. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 04-10-2013 01:17 PM

    Line breaks missing

    I have a multi-line text box, it's value is picked up from a SP list based on a selection.
    Address[Title = Supplier]

    In the list, the field text contains line breaks (it is a rich text box).
    However when the calue is populated into the IP form the line breaks are removed and the value is all on the one line.

    Is there a way to retain the line breaks?

  • 04-22-2013 01:01 AM In reply to

    Do you know how the line breaks are actually stored in the list? Whether they are stored as <br />s or as newline characters?
    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 04-22-2013 01:39 PM In reply to

    They are stored within <div> tags

    e.g. <div>my house</div><div>my street</div><div>my town</div>

  • 04-22-2013 02:01 PM In reply to

    You put me on the right track thanks, I change the multiple lines of text format from rich text to plain text. It has now removed all the html from the contents and the text wraps as is entered.

    Printing changes the line breaks into paragraph breaks but I guess we can live with that

Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.