<?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: Upper case all data</title><link>https://www.infopathdev.com:443/forums/thread/70916.aspx</link><pubDate>Thu, 06 Oct 2011 14:13:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70916</guid><dc:creator>cmoses0971</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70916.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=70916</wfw:commentRss><description>&lt;p&gt;That worked great CycleFitness... That was all I needed as well. :) Works great!&lt;/p&gt;</description></item><item><title>Re: Upper case all data</title><link>https://www.infopathdev.com:443/forums/thread/7412.aspx</link><pubDate>Tue, 25 Apr 2006 18:44:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7412</guid><dc:creator>CycleFitness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7412.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7412</wfw:commentRss><description>Matt:&lt;br /&gt;&lt;br /&gt;I just followed your links and see it's JScript.  How do you attach that to the field?&lt;br /&gt;&lt;br /&gt;Deb</description></item><item><title>Re: Upper case all data</title><link>https://www.infopathdev.com:443/forums/thread/7411.aspx</link><pubDate>Tue, 25 Apr 2006 18:42:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7411</guid><dc:creator>CycleFitness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7411.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7411</wfw:commentRss><description>Oh, boy.  Thanks, Matt.  You guys are way over my head!  I&amp;#39;m assuming that&amp;#39;s all through code???  If so, what language is that?&lt;br /&gt;&lt;br /&gt;I did come up with a solution for each of the three as follows:&lt;br /&gt;&lt;br /&gt;1)  Convert all to uppercase:&lt;br /&gt;translate(., &amp;quot;abcdefghijklmnopqrstuvwxyz&amp;quot;, &amp;quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ&amp;quot;)&lt;br /&gt;&lt;br /&gt;2) Convert first letter to uppercase:&lt;br /&gt;concat(substring(translate(., &amp;quot;abcdefghijklmnopqrstuvwxyz&amp;quot;, &amp;quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ&amp;quot;), 1, 1), substring(., 2, string-length(.) - 1))&lt;br /&gt;&lt;br /&gt;3) Format a telephone number as 999 999-9999:&lt;br /&gt;I adapted S.Y.M Wong A Ton&amp;#39;s solution for formatting a time field found here:  http://enterprise-solutions.swits.net/infopath/auto-format-time-on-lostfocus.htm.&lt;br /&gt;He was so taken with the idea of using it for telephone numbers that he&amp;#39;s re-thinking the solution and will post it as a new receipe this weekend.&lt;br /&gt;&lt;br /&gt;I will also save what you&amp;#39;ve posted as an example of doing it with code, correct? ;-)</description></item><item><title>Re: Upper case all data</title><link>https://www.infopathdev.com:443/forums/thread/7410.aspx</link><pubDate>Tue, 25 Apr 2006 01:46:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7410</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7410.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7410</wfw:commentRss><description>Try doing something like this in the OnAfterChange of each of the nodes:&lt;br /&gt;&lt;br /&gt;eventObj.site.text = eventObj.site.text.ToUpper();&lt;br /&gt;&lt;br /&gt;This would make the text all uppercase, but for number 2 you would do this:&lt;br /&gt;&lt;br /&gt;var text = eventObj.site.text;&lt;br /&gt;text = text.substring(0,1).ToUpper() + text.substring(1, text.length);&lt;br /&gt;&lt;br /&gt;eventObj.site.text = text;&lt;br /&gt;&lt;br /&gt;Using these similar techniques you can create option 3. I hope this helps!&lt;br /&gt;&lt;br /&gt;REF:&lt;br /&lt;a target="_blank" href=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/9cf9a005-cbe3-42fd-828b-57a39f54224c.asp&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/9cf9a005-cbe3-42fd-828b-57a39f54224c.asp&lt;/a&gt;&lt;br /&lt;a target="_blank" href=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/9cf9a005-cbe3-42fd-828b-57a39f54224c.asp&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/9cf9a005-cbe3-42fd-828b-57a39f54224c.asp&lt;/a&gt;</description></item><item><title>Re: Upper case all data</title><link>https://www.infopathdev.com:443/forums/thread/7409.aspx</link><pubDate>Mon, 24 Apr 2006 19:11:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7409</guid><dc:creator>CycleFitness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7409.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7409</wfw:commentRss><description>I would like to do this as well as the following:&lt;br /&gt;&lt;br /&gt;1)  Convert a state field to all upper&lt;br /&gt;2)  Initial cap the first letter of a field&lt;br /&gt;3)  Format a telephone number field as: (999) 999-9999&lt;br /&gt;&lt;br /&gt;The string.ToUpper() function is something that has to be done through code? Where do I find help on these functions?&lt;br /&gt;&lt;br /&gt;Thanks!</description></item><item><title>Re: Upper case all data</title><link>https://www.infopathdev.com:443/forums/thread/7408.aspx</link><pubDate>Mon, 08 Aug 2005 21:00:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7408</guid><dc:creator>jeanpaul</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7408.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7408</wfw:commentRss><description>I am not sure where and how to implement the string.ToUpper() function...ar you suggesting to aplly to every node or there a way to apply to all nodes...sample code would help...thanks</description></item><item><title>Re: Upper case all data</title><link>https://www.infopathdev.com:443/forums/thread/7407.aspx</link><pubDate>Mon, 08 Aug 2005 20:36:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7407</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7407.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7407</wfw:commentRss><description>Hi jeanpaul,&lt;br /&gt;Directly in InfoPath there is no such method, but as you said you can use translate. Other way is write a funtion to convert data to uppercase by using string.ToUpper() function.&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Upper case all data</title><link>https://www.infopathdev.com:443/forums/thread/4840.aspx</link><pubDate>Mon, 08 Aug 2005 20:14:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4840</guid><dc:creator>jeanpaul</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4840.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4840</wfw:commentRss><description>Is there a way to upper case all the input in a form, instead of  having to apply the translate function to every field in the form.</description></item></channel></rss>