<?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: Enabling A Control (A Button) - InfoPath 2007</title><link>https://www.infopathdev.com:443/forums/thread/90591.aspx</link><pubDate>Tue, 11 Jun 2013 18:27:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90591</guid><dc:creator>Moe1950</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90591.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90591</wfw:commentRss><description>&lt;p&gt;It looks like I was doing two things wrong.&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp; I had both textboxes formatting as Whole Number integers.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I didn&amp;#39;t realize I could do math expressions like greater than or less than on strings.&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;&amp;nbsp;I was entering the report month as a single digit.&lt;/p&gt;
&lt;p&gt;When I changed the textbox format to string and entered the report month as two digits (i.e., 01, 02, 03 etc) the comparsion worked.&lt;/p&gt;
&lt;p&gt;Thank you for your time and patience!&amp;nbsp;&amp;nbsp; It is much appreciated.&lt;/p&gt;</description></item><item><title>Re: Enabling A Control (A Button) - InfoPath 2007</title><link>https://www.infopathdev.com:443/forums/thread/90548.aspx</link><pubDate>Mon, 10 Jun 2013 18:52:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90548</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90548.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90548</wfw:commentRss><description>&lt;p&gt;Sorry, I don&amp;#39;t know what else to tell you. I have fired up a quick, sample form. In one textbox (string) I used your same formula (I get 06). In the other textbox I just type in the month number (06). &lt;/p&gt;&lt;p&gt;It works fine. The button is disabled and enabled as I expect. That is, the comparison works correctly.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Moe1950:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;For January through September the month number from the substring(today(), 6, 2) formula is saved as a single digit, but, the month number in the other textbox is also a single digit.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;When I use your formula in my test form, the formula yields 06, not 6, when the field is data type &lt;strong&gt;string&lt;/strong&gt;.&lt;/p&gt;&lt;p&gt;If I change my form such that the field&amp;#39;s data type is whole number (to avoid the leading 0) then you would need to change the result of the formula back to a number. Remember, &lt;em&gt;substring&lt;/em&gt; is a string formula, so it returns a string. You could need to do number(substring(today(), 6, 2)) to convert it back to a number. When I do that I get 6 back from the formula, and I can type in a 6 and the formatting works as expected again.&lt;/p&gt;&lt;p&gt;So, to summarize, in my testing, as long as I keep my data types consistent, the comparison works as expected. It sounds like you&amp;#39;ve already played around with the form and the various data types. It&amp;#39;s unfortunate that it&amp;#39;s not working. Moving into&amp;nbsp;a code solution for this seems too complex. Good luck!&lt;/p&gt;</description></item><item><title>Re: Enabling A Control (A Button) - InfoPath 2007</title><link>https://www.infopathdev.com:443/forums/thread/90523.aspx</link><pubDate>Mon, 10 Jun 2013 13:08:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90523</guid><dc:creator>Moe1950</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90523.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90523</wfw:commentRss><description>&lt;p&gt;There are two textboxes.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; On the form (in addition to everything else) is a drop down list that has tweleve entries consisting of January 2013 through December 2013.&amp;nbsp;&amp;nbsp;&amp;nbsp; The form is saved once for each month in the year represented by the entry in the dropdown list.&amp;nbsp;&amp;nbsp; In addition to changing the dropdown list to correspond to a particular month, I also type, manually, the month number into one of the textboxes as 1, 2, 3, etc 10,11, 12)&amp;nbsp; The links to each form is presented on another Infopath form as a Menu.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When each form is opened, a second textbox is populated&amp;nbsp;via&amp;nbsp;the following formula:&amp;nbsp;&amp;nbsp; substring(today(), 6, 2)&lt;/p&gt;
&lt;p&gt;This puts the current month number in the second textbox.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I now compare the two textboxes and if the do not equal each other I disable the Save button.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; However, even when they do equal, the Save button remains disabled.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For January through September the month number from the substring(today(), 6, 2) formula is saved as a single digit, but, the month number in the other textbox is also a single digit.&lt;/p&gt;
&lt;p&gt;Since that isn&amp;#39;t working I&amp;#39;m now&amp;nbsp;trying to figure out how to programmatically get the name of the month from the current date.&amp;nbsp;&amp;nbsp; My thought is that maybe June&amp;nbsp;in one box would equal June in the other.&amp;nbsp;&amp;nbsp;&amp;nbsp; I haven&amp;#39;t tried it yet, but 6 and 6&amp;nbsp;are not equalling.&amp;nbsp;&amp;nbsp;&amp;nbsp; I guess I could give the translate thing a shot.&amp;nbsp;&amp;nbsp; Thanks.&amp;nbsp; &lt;/p&gt;</description></item><item><title>Re: Enabling A Control (A Button) - InfoPath 2007</title><link>https://www.infopathdev.com:443/forums/thread/90521.aspx</link><pubDate>Mon, 10 Jun 2013 12:49:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90521</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90521.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90521</wfw:commentRss><description>&lt;p&gt;The values for the month are calculated via rules in the form, is that correct? What I mean is, the user is not typing in the month number. If that&amp;#39;s the case, then the rules just need to be fixed to exclude any extra spaces. Have your rules be consistent and produce always a two digit number, i.e., 01, 02... 11, 12 for the month. Doing so will ensure the comparison will work. As for the extra spaces, I don&amp;#39;t know where those would be coming from in the rules. You could try translate(date,&amp;quot; &amp;quot;,&amp;quot;&amp;quot;). &lt;/p&gt;&lt;p&gt;Good luck.&lt;/p&gt;</description></item><item><title>Re: Enabling A Control (A Button) - InfoPath 2007</title><link>https://www.infopathdev.com:443/forums/thread/90516.aspx</link><pubDate>Mon, 10 Jun 2013 11:33:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90516</guid><dc:creator>Moe1950</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90516.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90516</wfw:commentRss><description>&lt;p&gt;Is there a better way of doing what I need to do than trying to compare the contents of two textboxes?&lt;/p&gt;</description></item><item><title>Re: Enabling A Control (A Button) - InfoPath 2007</title><link>https://www.infopathdev.com:443/forums/thread/90494.aspx</link><pubDate>Fri, 07 Jun 2013 12:47:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90494</guid><dc:creator>Moe1950</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90494.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90494</wfw:commentRss><description>&lt;p&gt;Both have just a 6 in them, no 06 entries.&lt;/p&gt;
&lt;p&gt;There are spaces however....I don&amp;#39;t know how many.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Both textboxs are left justfied.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can I use a Trim or Substring in conditional formatting?&lt;/p&gt;</description></item><item><title>Re: Enabling A Control (A Button) - InfoPath 2007</title><link>https://www.infopathdev.com:443/forums/thread/90492.aspx</link><pubDate>Fri, 07 Jun 2013 12:43:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90492</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90492.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90492</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Are you sure both fields contain just &amp;quot;6&amp;quot;? If it&amp;#39;s &amp;quot;06&amp;quot; or &amp;quot; 6&amp;quot; (space six) or &amp;quot;6 &amp;quot; (six space) then the comparison might fail.&lt;/p&gt;</description></item><item><title>Re: Enabling A Control (A Button) - InfoPath 2007</title><link>https://www.infopathdev.com:443/forums/thread/90490.aspx</link><pubDate>Fri, 07 Jun 2013 11:46:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90490</guid><dc:creator>Moe1950</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90490.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90490</wfw:commentRss><description>&lt;p&gt;Actually I have discovered a more fundamental problem.&amp;nbsp;&amp;nbsp; What I thought was working is not.&lt;/p&gt;
&lt;p&gt;I originally said that I have a&amp;nbsp;textbox which stores the month number of the report month and&amp;nbsp;another textbox which grabs the current month number from the current date.&amp;nbsp;&amp;nbsp;&amp;nbsp; If they do not equal, the button is disabled.&amp;nbsp;&amp;nbsp; This works just fine.&amp;nbsp;&amp;nbsp;&amp;nbsp; That doesn&amp;#39;t work just fine.&amp;nbsp; In fact, it doesn&amp;#39;t work at all.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Even when the report month textbox equals the current month textbox, the button remains disabled.&amp;nbsp;&amp;nbsp;&amp;nbsp; The conditional formatting of the button is:&amp;nbsp;&amp;nbsp;&amp;nbsp; if txtMonthNum does not equal txtReportMonth then disable this control - in June the report month and the current month would both be 6 and 6 is in both textboxs so they do equal but the button remains disabled.&amp;nbsp;&amp;nbsp;&amp;nbsp; What am I missing?&lt;/p&gt;</description></item><item><title>Re: Enabling A Control (A Button) - InfoPath 2007</title><link>https://www.infopathdev.com:443/forums/thread/90457.aspx</link><pubDate>Thu, 06 Jun 2013 12:29:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90457</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90457.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90457</wfw:commentRss><description>&lt;p&gt;You conditional formatting just gets a new condition. Right now that condition is probably something like &lt;/p&gt;&lt;p&gt;CurrentMonthNumber is not equal to ReportMonth, Disable&lt;/p&gt;&lt;p&gt;You&amp;#39;ll need something like&lt;/p&gt;&lt;p&gt;CurrentMonthNumber is not equal to ReportMonth AND&lt;/p&gt;&lt;p&gt;passwordEnteres is not equal to ValidPassword&lt;/p&gt;&lt;p&gt;then Disable&lt;/p&gt;&lt;p&gt;Good luck!&lt;/p&gt;</description></item><item><title>Enabling A Control (A Button) - InfoPath 2007</title><link>https://www.infopathdev.com:443/forums/thread/90455.aspx</link><pubDate>Thu, 06 Jun 2013 12:15:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90455</guid><dc:creator>Moe1950</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90455.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90455</wfw:commentRss><description>&lt;p&gt;I have a &amp;quot;Save&amp;quot; button on my form that the user wants enabled only if the report month equals the current month.&lt;/p&gt;
&lt;p&gt;I have a&amp;nbsp;textbox which stores the month number of the report month and&amp;nbsp;another textbox which grabs the current month number from the current date.&amp;nbsp;&amp;nbsp;&amp;nbsp; If they do not equal, the button is disabled.&amp;nbsp;&amp;nbsp; This works just fine.&lt;/p&gt;
&lt;p&gt;Now my customer would like me to build in a feature where the button could be reenabled if a password was entered.&amp;nbsp;&amp;nbsp;&amp;nbsp; So, I put another textbox on the form and I need to it to enable the button is specific text is typed into the textbox.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; But, the conditional formatting options only allow me to Hide the button or Disable It.&amp;nbsp;&amp;nbsp;&amp;nbsp; If it is disabled already, how do I enable it based on a textbox equaling a specific string of text?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>