<?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: Automatically make the first letter capital and the rest of the word lowercase</title><link>https://www.infopathdev.com:443/forums/thread/72823.aspx</link><pubDate>Sat, 10 Dec 2011 00:42:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72823</guid><dc:creator>Skarn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72823.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=72823</wfw:commentRss><description>&lt;p&gt;Added another rule at the very beginning to cater for this.&lt;/p&gt;&lt;p&gt;There is a key method I&amp;#39;ve used to accomplish this. It resolved a problem you can get if you try to set a fields value using a rule on the field itself.&lt;/p&gt;&lt;p&gt;Infopath checks and runs the rules on a field immediately after it gets changed, so it can get stuck in an infinite loop (which it breaks by giving the user an error).&lt;/p&gt;&lt;p&gt;The new rule I&amp;#39;ve added at the beginning is the simplest example of the method to work around the infinite loops issue so that the rule only runs once after the initial field change.&lt;/p&gt;&lt;p&gt;&amp;#39;flag field&amp;#39; = &amp;#39;resting state value&amp;#39; as default&lt;br /&gt;Change Field -&amp;gt; Run rule if &amp;#39;flag field&amp;#39; is &amp;#39;resting state value&amp;#39; -&amp;gt; Rule changes &amp;#39;flag field&amp;#39; to &amp;#39;processing state value&amp;#39; -&amp;gt; Rule changes field value -&amp;gt; (A) Infopath runs rules from beginning (as field just changed again) -&amp;gt; Rule does not run this time as &amp;#39;flag field&amp;#39; is currently = &amp;#39;processing state value&amp;#39; -&amp;gt; Infopath returns to (A) and runs next action in rule -&amp;gt; Rule changes &amp;#39;flag field&amp;#39; back to &amp;#39;resting state value&amp;#39; -&amp;gt; Rules finish.&lt;/p&gt;&lt;p&gt;&amp;#39;flag field&amp;#39; = &amp;#39;resting state value&amp;#39; again ready for next field change. &lt;/p&gt;&lt;p&gt;Might be a bit hard to get your head around but in an extreme usage allowed me to create the mess of rules with produced the desired outcome you asked for ;-)&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Automatically make the first letter capital and the rest of the word lowercase</title><link>https://www.infopathdev.com:443/forums/thread/72816.aspx</link><pubDate>Fri, 09 Dec 2011 22:43:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72816</guid><dc:creator>echs0001</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72816.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=72816</wfw:commentRss><description>&lt;p&gt;Hi Skarn, &lt;/p&gt;
&lt;p&gt;&amp;nbsp;What if some of my text boxes will only be filled in by one word and there won&amp;#39;t be a SPACE in the text boxes?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Automatically make the first letter capital and the rest of the word lowercase</title><link>https://www.infopathdev.com:443/forums/thread/72809.aspx</link><pubDate>Fri, 09 Dec 2011 18:17:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72809</guid><dc:creator>echs0001</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72809.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=72809</wfw:commentRss><description>&lt;p&gt;It works! Thank you both for your help! &lt;/p&gt;</description></item><item><title>Re: Automatically make the first letter capital and the rest of the word lowercase</title><link>https://www.infopathdev.com:443/forums/thread/72786.aspx</link><pubDate>Thu, 08 Dec 2011 22:28:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72786</guid><dc:creator>Skarn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72786.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=72786</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve never tried this before, and it did seem to take a mess of rules. There might be a better way :-) But attached is an example of field that has this behaviour.&lt;/p&gt;&lt;p&gt;It uses SPACE as the word separator and it will fail with an error if there&amp;#39;s more than 4-5 spaces in the field. Hopefully this will be enough for most situations. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Automatically make the first letter capital and the rest of the word lowercase</title><link>https://www.infopathdev.com:443/forums/thread/72726.aspx</link><pubDate>Thu, 08 Dec 2011 01:07:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72726</guid><dc:creator>Anson Hidajat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72726.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=72726</wfw:commentRss><description>&lt;p&gt;That will be tricky using simply xpath expressions.&amp;nbsp; Here is what I came up with that will take you half the way there:&lt;/p&gt;&lt;p&gt;concat(translate(substring(field1, 1, 1), &amp;quot;abcdefghijklmnopqrstuvwxyz&amp;quot;, &amp;quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ&amp;quot;), translate(substring(field1, 2, string-length(field1)), &amp;quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ&amp;quot;, &amp;quot;abcdefghijklmnopqrstuvwxyz&amp;quot;))&lt;/p&gt;&lt;p&gt;Let me explain the concepts in the this expression:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;translate(string, find, replace) - there is no convert text to upper or lowercase function.&amp;nbsp; This is the workaround.&amp;nbsp; To uppercase a word, I&amp;#39;m basically looking or all the lowercase letters and replacing them with the corresponding uppercase letter.&lt;/li&gt;&lt;li&gt;substring(string, start, length) - I&amp;#39;m getting the first character and make it uppercase, then I&amp;#39;m taking the rest of the string and making it lowercase.&lt;/li&gt;&lt;li&gt;concat(string, string) - and finally I&amp;#39;m putting the two strings together&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;This solution will only work for the single word case, but hopefully can get you started in building the right expression for your solution.&lt;/p&gt;</description></item><item><title>Automatically make the first letter capital and the rest of the word lowercase</title><link>https://www.infopathdev.com:443/forums/thread/72723.aspx</link><pubDate>Thu, 08 Dec 2011 00:35:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72723</guid><dc:creator>echs0001</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72723.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=72723</wfw:commentRss><description>&lt;p&gt;Hi, How do I go about changing the first letter of a word to be capatalized and the rest of the word lowercase?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;For example: changing &amp;quot;JOHN SMITH&amp;quot; or &amp;quot;john smith&amp;quot; to &amp;quot;John Smith&amp;quot; in a text box. &lt;/p&gt;
&lt;p&gt;Please help! &lt;/p&gt;</description></item></channel></rss>