<?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: Auto Dash for field</title><link>https://www.infopathdev.com:443/forums/thread/66570.aspx</link><pubDate>Mon, 16 May 2011 15:30:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66570</guid><dc:creator>tafavorite</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66570.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=66570</wfw:commentRss><description>&lt;p&gt;Thank you for your help. This did exactly what I needed. Been of great help, thanks again.&lt;/p&gt;</description></item><item><title>Re: Auto Dash for field</title><link>https://www.infopathdev.com:443/forums/thread/66553.aspx</link><pubDate>Sun, 15 May 2011 22:41:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66553</guid><dc:creator>Skarn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66553.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=66553</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;As a rule on the field - setting it&amp;#39;s value.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Formula:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;nbsp;concat(substring(translate(., &amp;quot;-&amp;quot;, &amp;quot;&amp;quot;), 1, 2), &amp;quot;-&amp;quot;, substring(translate(., &amp;quot;-&amp;quot;, &amp;quot;&amp;quot;), 3))&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;================================================================&lt;br /&gt;This formula contains embedded commands:&lt;/p&gt;&lt;blockquote&gt;A = translate(., &amp;quot;-&amp;quot;, &amp;quot;&amp;quot;)&lt;/blockquote&gt;&lt;p&gt;to remove all existing dashes before processing the current field value.&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;B = substring(A ,1 ,2)&lt;br /&gt;C = substring(A, 3)&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;to separate the first two characters and the rest of the current field value into two components.&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;concat(B,&amp;quot;-&amp;quot;,C)&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;to combine the separated parts together with a dash in between. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Auto Dash for field</title><link>https://www.infopathdev.com:443/forums/thread/66532.aspx</link><pubDate>Fri, 13 May 2011 17:54:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66532</guid><dc:creator>tafavorite</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66532.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=66532</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have a request that the owner would like their form to have a field be able to put the dash into this so the user does not have to. What the user has to enter is the following:&lt;/p&gt;
&lt;p&gt;AA-1111&lt;/p&gt;
&lt;p&gt;So the user should only enter: AA1111 and then a rule should be able to put the dash in the correct spot. I&amp;#39;m not sure how to do that exactly thou. Anyone have a clear method on how to accomplish this. Thanks.&lt;/p&gt;</description></item></channel></rss>