<?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: Adding Spaces to string</title><link>https://www.infopathdev.com:443/forums/thread/58014.aspx</link><pubDate>Mon, 16 Aug 2010 04:13:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58014</guid><dc:creator>Mirage</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58014.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=58014</wfw:commentRss><description>&lt;p&gt;You are amazing. I had it in the default value. So I put it in as a rule to execute only if it was in the form \d\d\d\d\d\d\d\d or \d\d\d\d\d\d\d\d&lt;/p&gt;
&lt;p&gt;No doubt I will find something else over time particulary integrating it with our current database. Will report back with the final product or any additional questions.&lt;/p&gt;</description></item><item><title>Re: Adding Spaces to string</title><link>https://www.infopathdev.com:443/forums/thread/58011.aspx</link><pubDate>Mon, 16 Aug 2010 03:16:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58011</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58011.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=58011</wfw:commentRss><description>&lt;p&gt;It sounds like you have the field recursively recalculating its own value over and over, which is what is causing that error and giving you that unexpected behavior.&lt;/p&gt;
&lt;p&gt;Are you using the formula in the field&amp;#39;s Default Value, or a Rule?&amp;nbsp; I would suggest placing the formula in a rule, and giving it the condition to only execute if the string is 9 characters or less.&lt;/p&gt;</description></item><item><title>Adding Spaces to string</title><link>https://www.infopathdev.com:443/forums/thread/58007.aspx</link><pubDate>Mon, 16 Aug 2010 01:41:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58007</guid><dc:creator>Mirage</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58007.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=58007</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;My employer has recently sent me on a basic infopath course and I have been given the job of digitising all of our forms. The first one, probably the most difficult one, is a new client form.&lt;/p&gt;
&lt;p&gt;We are an accounting firm and the form will integrate with an excel database which then integrates with our CRM. I am slowly getting there however I am having issues with what we call a Tax File Number. It contains 8 or 9 numbers and needs to be in the format dd ddd ddd or ddd ddd ddd. &lt;/p&gt;
&lt;p&gt;I have used the following formula&lt;/p&gt;
&lt;p&gt;concat(substring(., 1, string-length(.) - 6), &amp;quot; &amp;quot;, substring(., string-length(.) - 5, 3), &amp;quot; &amp;quot;, substring(., string-length(.) - 2, 3))&lt;/p&gt;
&lt;p&gt;It throws the error of to many calculations. The first 2 or 3 digits work and the last 3 work but the middle 3 does something weird.&lt;/p&gt;
&lt;p&gt;123456789 -&amp;gt; 123 4 5 6 789. If I change the middle section to be 2 long instead of 3, it shows like it should however I get the to many calculations error again and of course the middle section is 1 number to short.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any help would be greatly appreciated as I have exhausted my ideas and cant find anything that really helps on any websites.&lt;/p&gt;</description></item></channel></rss>