<?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: Telephone format in text control</title><link>https://www.infopathdev.com:443/forums/thread/102111.aspx</link><pubDate>Sun, 12 Apr 2015 00:29:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102111</guid><dc:creator>djm50</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102111.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=102111</wfw:commentRss><description>How do I change this original code if I want to end translation of the phone number to not include the brackets - like this. 123-456-7891?</description></item><item><title>Re: Telephone format in text control</title><link>https://www.infopathdev.com:443/forums/thread/101887.aspx</link><pubDate>Thu, 26 Mar 2015 15:05:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101887</guid><dc:creator>Charlene</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101887.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101887</wfw:commentRss><description>nope now its throwing it all off and not even the right number is populating at the moment....</description></item><item><title>Re: Telephone format in text control</title><link>https://www.infopathdev.com:443/forums/thread/101886.aspx</link><pubDate>Thu, 26 Mar 2015 14:47:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101886</guid><dc:creator>momk15</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101886.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101886</wfw:commentRss><description>that + is throwing it off.....scrap everything......


make the set a fields value : 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, 3), &amp;quot;) &amp;quot;, substring(translate(., &amp;quot;()-. &amp;quot;, &amp;quot;&amp;quot;), 5, 3), &amp;quot;-&amp;quot;, substring(translate(., &amp;quot;()-. &amp;quot;, &amp;quot;&amp;quot;), 8, 4))



condition is: 

Expression:  not(xdUtil:Match(string(.), &amp;quot;\+\d\(\d\d\d\) \d\d\d\-\d\d\d\d&amp;quot;))   AND

Expression:   string-length(translate(., &amp;quot;+()-. 0123456789&amp;quot;, &amp;quot;&amp;quot;)) = 0           AND

Expression:  string-length(translate(., &amp;quot;+()-. 0123456789&amp;quot;, &amp;quot;&amp;quot;)) = 0</description></item><item><title>Re: Telephone format in text control</title><link>https://www.infopathdev.com:443/forums/thread/101884.aspx</link><pubDate>Thu, 26 Mar 2015 14:38:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101884</guid><dc:creator>momk15</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101884.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101884</wfw:commentRss><description>also change the phone number pattern to a custom pattern:

\+\d\(\d\d\d\) \d\d\d\-\d\d\d\d</description></item><item><title>Re: Telephone format in text control</title><link>https://www.infopathdev.com:443/forums/thread/101883.aspx</link><pubDate>Thu, 26 Mar 2015 14:30:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101883</guid><dc:creator>Charlene</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101883.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101883</wfw:commentRss><description>OMG you are so close... Its now +1) 123-222-4444..... I need to either get rid of the +1) or get rid of the + &amp;amp; ) and have the - inserted.
Thank you so much!!!!</description></item><item><title>Re: Telephone format in text control</title><link>https://www.infopathdev.com:443/forums/thread/101882.aspx</link><pubDate>Thu, 26 Mar 2015 14:28:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101882</guid><dc:creator>momk15</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101882.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101882</wfw:commentRss><description>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, 3), &amp;quot;) &amp;quot;, substring(translate(., &amp;quot;()-. &amp;quot;, &amp;quot;&amp;quot;), 6, 3), &amp;quot;-&amp;quot;, substring(translate(., &amp;quot;()-. &amp;quot;, &amp;quot;&amp;quot;), 9, 4))</description></item><item><title>Re: Telephone format in text control</title><link>https://www.infopathdev.com:443/forums/thread/101880.aspx</link><pubDate>Thu, 26 Mar 2015 14:23:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101880</guid><dc:creator>Charlene</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101880.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101880</wfw:commentRss><description>Hi is there anyway you can copy and paste this so that I can copy and paste this in infopath.. I have tried typing this formula a few times and still get errors.. 

Thanks</description></item><item><title>Re: Telephone format in text control</title><link>https://www.infopathdev.com:443/forums/thread/101879.aspx</link><pubDate>Thu, 26 Mar 2015 13:33:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101879</guid><dc:creator>momk15</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101879.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101879</wfw:commentRss><description>do it like this....</description></item><item><title>Re: Telephone format in text control</title><link>https://www.infopathdev.com:443/forums/thread/101878.aspx</link><pubDate>Thu, 26 Mar 2015 12:57:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101878</guid><dc:creator>Charlene</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101878.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101878</wfw:commentRss><description>ok I changed the last digit in the concat to a 6 and not a 4 and gained the last two digits back. However, it still looks very weird. i don&amp;#39;t want the +. I just want it formated 1 (333) 444-7890.. Its now (+14) 222-635235</description></item><item><title>Re: Telephone format in text control</title><link>https://www.infopathdev.com:443/forums/thread/101877.aspx</link><pubDate>Thu, 26 Mar 2015 12:53:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101877</guid><dc:creator>Charlene</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101877.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101877</wfw:commentRss><description>I did what you said but it came out as the following: 
(+14) 103-6352... it cut the last two numbers... Did I do something wrong?</description></item><item><title>Re: Telephone format in text control</title><link>https://www.infopathdev.com:443/forums/thread/101876.aspx</link><pubDate>Thu, 26 Mar 2015 12:50:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101876</guid><dc:creator>momk15</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101876.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101876</wfw:commentRss><description>should look like this....

see attached</description></item><item><title>Re: Telephone format in text control</title><link>https://www.infopathdev.com:443/forums/thread/101875.aspx</link><pubDate>Thu, 26 Mar 2015 12:47:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101875</guid><dc:creator>momk15</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101875.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101875</wfw:commentRss><description>That didnt come out too user friendly not sure why. I spaced everything out but it all came together when i submitted it. private message me your contact info if you dont get it..</description></item><item><title>Re: Telephone format in text control</title><link>https://www.infopathdev.com:443/forums/thread/101874.aspx</link><pubDate>Thu, 26 Mar 2015 12:46:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101874</guid><dc:creator>momk15</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101874.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101874</wfw:commentRss><description>on the field you want to format put a rule:

conditions:

&amp;quot;Field you are formatting&amp;quot; does not match pattern  &amp;quot;Phone Number Pattern&amp;quot;  AND
The expression  &amp;quot;string-length(translate(., &amp;quot;()-. 0123456789&amp;quot;, &amp;quot;&amp;quot;)) = 0&amp;quot;   AND


Then run these actions:

Set a fields value: 

The field you want formatted 

set it to the following value:

concat(&amp;quot;(&amp;quot;, 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, 3), &amp;quot;-&amp;quot;, substring(translate(., &amp;quot;()-. &amp;quot;, &amp;quot;&amp;quot;), 7, 4))</description></item><item><title>Re: Telephone format in text control</title><link>https://www.infopathdev.com:443/forums/thread/101873.aspx</link><pubDate>Thu, 26 Mar 2015 12:38:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101873</guid><dc:creator>Charlene</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101873.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101873</wfw:commentRss><description>OMG!!! Thank you so much.. I have been pulling my hair out....</description></item><item><title>Re: Telephone format in text control</title><link>https://www.infopathdev.com:443/forums/thread/101872.aspx</link><pubDate>Thu, 26 Mar 2015 12:33:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101872</guid><dc:creator>momk15</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101872.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101872</wfw:commentRss><description>Yes I just got your message. I have your solution. Give me a few to get it out to you.. :)</description></item></channel></rss>