<?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: One does not simply format SSN fields in InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/thread/105971.aspx</link><pubDate>Fri, 25 Mar 2016 13:05:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105971</guid><dc:creator>NickiPT</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105971.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=105971</wfw:commentRss><description>&lt;p&gt;Actually, if you enter that code into the default value of the field, you&amp;#39;ll end up with it showing &amp;quot;--&amp;quot; before the user even enters anything. A&amp;nbsp;cleaner solution is to leave the default value blank and then put the following rules on the field:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Validation rule:&amp;nbsp;If SSN is not blank and SSN does not match pattern Social Security number&lt;/li&gt;&lt;li&gt;Action rule: If SSN matches pattern Custom \d\d\d\d\d\d\d\d\d then Set SSN to concat(substring(translate(., &amp;quot;-&amp;quot;, &amp;quot;&amp;quot;), 1, 3), &amp;quot;-&amp;quot;, substring(translate(., &amp;quot;-&amp;quot;, &amp;quot;&amp;quot;), 4, 2), &amp;quot;-&amp;quot;, substring(translate(., &amp;quot;-&amp;quot;, &amp;quot;&amp;quot;), 6, 4))&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: One does not simply format SSN fields in InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/thread/102985.aspx</link><pubDate>Fri, 26 Jun 2015 13:12:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102985</guid><dc:creator>RyanY</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102985.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102985</wfw:commentRss><description>Thanks to both of you for asking, asnwering and posting the final solution to this question.&amp;nbsp; You guys saved me a ton of time this morning!</description></item><item><title>Re: One does not simply format SSN fields in InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/thread/81692.aspx</link><pubDate>Thu, 16 Aug 2012 14:19:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81692</guid><dc:creator>Dudley</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81692.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=81692</wfw:commentRss><description>&lt;p&gt;Thank you, Hilary. Your suggestion really set me in the right direction for where to look.&lt;/p&gt;
&lt;p&gt;It turns out you can achieve the desired effect by selecting the target SSN field, in the control tools box, click default value, click the &lt;em&gt;fx&lt;/em&gt; button and then enter this formula:&lt;/p&gt;
&lt;p style="MARGIN:0in;FONT-FAMILY:arial;COLOR:black;FONT-SIZE:10pt;"&gt;&lt;span style="BACKGROUND:#d7e3bc;"&gt;concat(substring(translate(., &amp;quot;-&amp;quot;, &amp;quot;&amp;quot;), 1, 3), &amp;quot;-&amp;quot;, substring(translate(., &lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in;FONT-FAMILY:arial;COLOR:black;FONT-SIZE:10pt;"&gt;&lt;span style="BACKGROUND:#d7e3bc;"&gt;&amp;quot;-&amp;quot;, &amp;quot;&amp;quot;), 4, 2), &amp;quot;-&amp;quot;, substring(translate(., &amp;quot;-&amp;quot;, &amp;quot;&amp;quot;), 6, 4))&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: One does not simply format SSN fields in InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/thread/81674.aspx</link><pubDate>Wed, 15 Aug 2012 22:13:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81674</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81674.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=81674</wfw:commentRss><description>&lt;p&gt;You could add a rule to the field in InfoPath&amp;nbsp;- the condition would be if the field doesn&amp;#39;t contain &amp;quot;-&amp;quot; you could add it - using substring functions to get the numbers separated in groups. I&amp;#39;m not sure if you can do this in a calculated column in SharePoint - because you need to make sure the user hasn&amp;#39;t already entered &amp;quot;-&amp;quot;, right?&lt;/p&gt;</description></item><item><title>One does not simply format SSN fields in InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/thread/81655.aspx</link><pubDate>Wed, 15 Aug 2012 14:52:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81655</guid><dc:creator>Dudley</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81655.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=81655</wfw:commentRss><description>&lt;p&gt;Hello.&lt;/p&gt;&lt;p&gt;I&amp;#39;m having a difficult time of getting my problem solved:&lt;/p&gt;&lt;p&gt;I want my SharePoint 2010 users to enter 9 numbers on a SSN field list column, without having to bother with inputting dashes. &lt;/p&gt;&lt;p&gt;I would then like the column to display the numbers in the column with hypens added.&lt;/p&gt;&lt;p&gt;I&amp;#39;ve been trying to do this by using Infopath, or SPD, but have not found a successful solution.&lt;/p&gt;&lt;p&gt;Can anyone offer some assistance?&lt;/p&gt;&lt;p&gt;Thank you.&lt;/p&gt;</description></item></channel></rss>