<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Concat and Removing Unwanted Spaces</title><link>https://www.infopathdev.com:443/forums/thread/105632.aspx</link><pubDate>Thu, 25 Feb 2016 16:30:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105632</guid><dc:creator>griddle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105632.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=105632</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;Hilary Stoupa:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Maybe try wrapping your concat in a normalize-space function? normalize-space(concat(field1, &amp;quot; &amp;quot;, field2, &amp;quot; &amp;quot;, field3, &amp;quot; &amp;quot;, field4, &amp;quot; &amp;quot;,field5, &amp;quot; &amp;quot;,field6))&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Perfect, thanks!&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Concat and Removing Unwanted Spaces</title><link>https://www.infopathdev.com:443/forums/thread/105630.aspx</link><pubDate>Thu, 25 Feb 2016 15:42:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105630</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105630.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=105630</wfw:commentRss><description>Maybe try wrapping your concat in a normalize-space function? normalize-space(concat(field1, &amp;quot; &amp;quot;, field2, &amp;quot; &amp;quot;, field3, &amp;quot; &amp;quot;, field4, &amp;quot; &amp;quot;,field5, &amp;quot; &amp;quot;,field6))</description></item><item><title>Concat and Removing Unwanted Spaces</title><link>https://www.infopathdev.com:443/forums/thread/105624.aspx</link><pubDate>Thu, 25 Feb 2016 00:05:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105624</guid><dc:creator>griddle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105624.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=105624</wfw:commentRss><description>&lt;p&gt;Hello, apologies if this has been answered, but I couldn&amp;#39;t find&amp;nbsp;exactly what I was looking for.&lt;/p&gt;&lt;p&gt;This is for a web-based form that directly updates a SharePoint list.&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;m looking to concat several text boxes into one.&amp;nbsp;&amp;nbsp;Not all the original text boxes will contain text.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Example:&lt;/p&gt;&lt;p&gt;&amp;nbsp;field1, field2, field3, field4, field5, and field6 need to be concatenated into field7 with a single space between the values.&lt;/p&gt;&lt;p&gt;What I&amp;#39;m using as the formula on field7:&amp;nbsp; concat(field1,&amp;nbsp;&amp;quot; &amp;quot;, field2, &amp;quot; &amp;quot;, field3,&amp;nbsp;&amp;quot; &amp;quot;, field4, &amp;quot; &amp;quot;,field5, &amp;quot; &amp;quot;,field6)&amp;nbsp;&lt;/p&gt;&lt;p&gt;What&amp;#39;s happening is that if field1 and field2 and field3 contain no text, when it concatenates fields4-6 into the SharePoint list, there are leading&amp;nbsp;spaces that I don&amp;#39;t want to appear.&lt;/p&gt;&lt;p&gt;When previewing the form from&amp;nbsp;design mode, field7&amp;nbsp;appears to look ok, with no leading spaces if the first several fields don&amp;#39;t contain text.&amp;nbsp; The leading spaces appear&amp;nbsp;once the form is published and used in-browser, and in the&amp;nbsp;SharePoint list once submitted.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>