<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Line break</title><link>https://www.infopathdev.com:443/forums/thread/100783.aspx</link><pubDate>Thu, 15 Jan 2015 22:08:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100783</guid><dc:creator>lockettc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100783.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100783</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Jimmy.. can you let me know what the trickier option is?&lt;/p&gt;</description></item><item><title>Re: Line break</title><link>https://www.infopathdev.com:443/forums/thread/100543.aspx</link><pubDate>Thu, 18 Dec 2014 21:19:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100543</guid><dc:creator>wals5751</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100543.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100543</wfw:commentRss><description>Perfect worked first time for me as per your instructions

Used it as part of the solution to grab all the selected values of a multi select list box.

First I used the solution in the link below to grab all the values , however it brought back one long string separated with semi colons

https://social.technet.microsoft.com/Forums/office/en-US/021f0b84-08df-41f2-8cca-d3a8eb2e6ccd/how-to-get-the-selected-value-from-the-multipleselection-listbox-infopath-form?forum=sharepointadminprevious

Then I used your solution to add the line returns to make it more presentable to the users in a multi line field.

Many thanks</description></item><item><title>Re: Line break</title><link>https://www.infopathdev.com:443/forums/thread/86053.aspx</link><pubDate>Tue, 15 Jan 2013 19:14:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86053</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86053.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=86053</wfw:commentRss><description>&lt;p&gt;Yes, you should be able to use the following formula to count the number of line breaks in a field:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;string-length(&lt;strong&gt;&lt;u&gt;field&lt;/u&gt;&lt;/strong&gt;) - string-length(translate(&lt;strong&gt;&lt;u&gt;field&lt;/u&gt;&lt;/strong&gt;, &lt;u&gt;lineBreak&lt;/u&gt;, &amp;quot;&amp;quot;))&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Line break</title><link>https://www.infopathdev.com:443/forums/thread/86042.aspx</link><pubDate>Tue, 15 Jan 2013 16:14:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86042</guid><dc:creator>danlovejoy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86042.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=86042</wfw:commentRss><description>This is a fascinating technique.

Now, If I want to count the number of line breaks in a field, would I use XPath to match &amp;amp;#xA;?</description></item><item><title>Re: Line break</title><link>https://www.infopathdev.com:443/forums/thread/72411.aspx</link><pubDate>Mon, 28 Nov 2011 19:58:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72411</guid><dc:creator>Scott Rooke</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72411.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=72411</wfw:commentRss><description>&lt;p&gt;Thank Jimmy.&amp;nbsp; No luck.&amp;nbsp; I have used qRules with another client but it&amp;#39;s not in the budget at the moment.&amp;nbsp; I have mentioned it though and it will be considered for next years budget.&amp;nbsp; For the time being, if the user enters a carriage return after adding their comments this will work.&amp;nbsp; :-)&lt;/p&gt;</description></item><item><title>Re: Line break</title><link>https://www.infopathdev.com:443/forums/thread/72334.aspx</link><pubDate>Wed, 23 Nov 2011 18:45:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72334</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72334.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=72334</wfw:commentRss><description>&lt;p&gt;Hi Scott,&lt;/p&gt;
&lt;p&gt;Yeah, that was my comment from the other day. :-)&lt;/p&gt;
&lt;p&gt;Now that I&amp;#39;m searching through old forum posts, I can&amp;#39;t find any strong evidence that this trick doesn&amp;#39;t work on browsers, so I may have been mistaken there.&amp;nbsp; One thing you can try first is to use &amp;amp;#xD;&amp;amp;#xA; or &amp;amp;#xA;&amp;amp;#xD; instead of just &amp;amp;#xA;&lt;/p&gt;
&lt;p&gt;If that still doesn&amp;#39;t work,&amp;nbsp;the more orthodox way of maintaining status changes, and what we do, is to use a repeating field or a repeating group, and add a new row to it when the status changes.&amp;nbsp; With qRules, that should be pretty easy to automate.&amp;nbsp; Would that work for you?&lt;/p&gt;</description></item><item><title>Re: Line break</title><link>https://www.infopathdev.com:443/forums/thread/72325.aspx</link><pubDate>Wed, 23 Nov 2011 17:52:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72325</guid><dc:creator>Scott Rooke</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72325.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=72325</wfw:commentRss><description>&lt;p&gt;Oh.... say it ain&amp;#39;t so!&amp;nbsp; ARGH!!!!&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Well, let me explain what I&amp;#39;m trying to do and maybe there&amp;#39;s another approach.&amp;nbsp; I have a multi-line textbox field on my form.&amp;nbsp; I have a history multi-line textbox field (read-only) as well.&amp;nbsp; That if the Status field is not blank then concat the current History value with the new value in the Status field.&amp;nbsp; If I manually put a carriage return before I start typing in the Status field and one at the end then it works.&amp;nbsp; But that&amp;#39;s a major training predicament.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any thoughts? &lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Scott&lt;/p&gt;
&lt;p&gt;BTW - I loved the comment from the other day, &amp;quot;We don&amp;#39;t write code for FREE.&amp;quot;&amp;nbsp; Was that you?&lt;/p&gt;</description></item><item><title>Re: Line break</title><link>https://www.infopathdev.com:443/forums/thread/72324.aspx</link><pubDate>Wed, 23 Nov 2011 17:34:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72324</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72324.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=72324</wfw:commentRss><description>&lt;p&gt;Hi Scott,&lt;/p&gt;
&lt;p&gt;I hate to be the bringer of bad news, but everything I&amp;#39;ve heard about this method is that it doesn&amp;#39;t work in the browser.&amp;nbsp; I&amp;#39;ve yet to hear of any approach that does.&lt;/p&gt;</description></item><item><title>Re: Line break</title><link>https://www.infopathdev.com:443/forums/thread/72322.aspx</link><pubDate>Wed, 23 Nov 2011 17:29:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72322</guid><dc:creator>Scott Rooke</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72322.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=72322</wfw:commentRss><description>&lt;p&gt;Hi Jimmy -&lt;/p&gt;
&lt;p&gt;I tried using the newline from the xml 2DS file but it&amp;#39;s not working in InfoPath 2007 Browser Enabled Forms.&amp;nbsp; It does work when I preview it using InfoPath 2010 Designer.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;My XML looks like this.&lt;/p&gt;
&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;linebreaks&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;newLine&amp;gt;&amp;amp;#xA;&amp;lt;/newLine&amp;gt;&lt;br /&gt;&amp;lt;/linebreaks&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any thoughts why this won&amp;#39;t work in the browser?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Scott&lt;/p&gt;</description></item><item><title>Re: Line break</title><link>https://www.infopathdev.com:443/forums/thread/62277.aspx</link><pubDate>Tue, 14 Dec 2010 12:45:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62277</guid><dc:creator>merlin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62277.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=62277</wfw:commentRss><description>&lt;p&gt;Jimmy, chasing threads here. How can i apply this to adding ascii charactors to a concat statement? please clarify.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;</description></item><item><title>Re: Line break</title><link>https://www.infopathdev.com:443/forums/thread/60634.aspx</link><pubDate>Fri, 22 Oct 2010 17:33:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60634</guid><dc:creator>Inder</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60634.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=60634</wfw:commentRss><description>&lt;p&gt;hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;did you find a solution to this,&lt;/p&gt;
&lt;p&gt;I want user to enter data and copy paste from word but when there are line breaks, once i save and close the form and try to reopen it gives and error and the form type changes to simple XML .&lt;/p&gt;
&lt;p&gt;I have is a browser compatible form deployed on sharepoint 2007 and i am aware of the limitation that richtext does nto supoport all the properties&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;</description></item><item><title>Re: Line break</title><link>https://www.infopathdev.com:443/forums/thread/47656.aspx</link><pubDate>Wed, 07 Oct 2009 11:44:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47656</guid><dc:creator>Svetoslav</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47656.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=47656</wfw:commentRss><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I have the exactly the same problem. I have a data connection to SP library with forms. In this SP library I have exported a rich text field of the form, which contains some text. In the main form with a data connection I am pulling this text into a repeating table (with some conditional formating i filter all the files in the SP library and take exactly what i need) So in the main form, where I have the extracted text, it is not formated with paragraphs..it is very bothering. It is strange because even when they are extracted into the SP library I do see the paragraphs.. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;If someone can give me a hint, I will be very thankful &lt;/p&gt;</description></item><item><title>Re: Line break</title><link>https://www.infopathdev.com:443/forums/thread/43940.aspx</link><pubDate>Wed, 08 Jul 2009 12:54:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43940</guid><dc:creator>andem038</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43940.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=43940</wfw:commentRss><description>&lt;p&gt;Hi, 
&lt;p&gt;I have a similiar problem. 
&lt;p&gt;I&amp;#39;m trying to use Show Dialog box expression with a SP-list. My column in SP is type: Multiple lines of text (Plain text). In that column I have text with line breaks, but in dialog box I get a non-line-break-text. 
&lt;p&gt;Any solution?&lt;/p&gt;</description></item><item><title>Re: Line break</title><link>https://www.infopathdev.com:443/forums/thread/41351.aspx</link><pubDate>Wed, 06 May 2009 19:01:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41351</guid><dc:creator>richardlpalmer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41351.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=41351</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Jimmy:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;By any chance are those fields in a repeating field of some sort, or are they all separate fields throughout the data source.&amp;nbsp; Could you post your formula in its current form?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;When you added the XML file, did you leave the option &amp;quot;Embed this as a resource file&amp;quot; or something like that checked, or did you uncheck it?&amp;nbsp; It&amp;#39;s a good idea to have the file stored as a resource.&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s in a Repeating Section, yes. I currently have it bound to a Main data source (going to change that).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img src="http://i169.photobucket.com/albums/u227/richardlpalmer/Screen%20Shots/002.jpg" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the formula: &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;concat(@RelDateA, newLine, @RelDateB, newLine, @RelDateC, newLine, @RelDateD, newLine, @RelDateE, newLine, @RelDateF, newLine, @RelDateG, newLine, @RelDateH, newLine, @RelDateJ, newLine, @RelDateK, newLine, @RelDateL, newLine, @RelDateM, newLine, @RelDateN, newLine, @RelDateO, newLine, @RelDateP, newLine, @RelDateQ, newLine, @RelDateR, newLine, @RelDateS, newLine, @RelDateT, newLine, @RelDateU)&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;When I added the XML file, yes I left that option checked&amp;nbsp;(seemed logical to me).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Line break</title><link>https://www.infopathdev.com:443/forums/thread/41345.aspx</link><pubDate>Wed, 06 May 2009 16:08:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41345</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41345.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=41345</wfw:commentRss><description>&lt;p&gt;By any chance are those fields in a repeating field of some sort, or are they all separate fields throughout the data source.&amp;nbsp; Could you post your formula in its current form?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;When you added the XML file, did you leave the option &amp;quot;Embed this as a resource file&amp;quot; or something like that checked, or did you uncheck it?&amp;nbsp; It&amp;#39;s a good idea to have the file stored as a resource.&lt;/p&gt;</description></item></channel></rss>