<?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: Hide a Submit Button based on the string-length of another field</title><link>https://www.infopathdev.com:443/forums/thread/102997.aspx</link><pubDate>Fri, 26 Jun 2015 20:08:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102997</guid><dc:creator>cworley</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102997.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102997</wfw:commentRss><description>&lt;p&gt;Hi Hilary,&lt;/p&gt;&lt;p&gt;Thanks for your help. I opened your form and your rule worked just fine. Before I got your email, I tried this condition and it worked!&lt;/p&gt;&lt;p&gt;Field1&amp;nbsp; is equal to&amp;nbsp;&amp;nbsp; string-length(Field1) &amp;gt;225&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;thank you again&amp;#39;&lt;/p&gt;</description></item><item><title>Re: Hide a Submit Button based on the string-length of another field</title><link>https://www.infopathdev.com:443/forums/thread/102995.aspx</link><pubDate>Fri, 26 Jun 2015 19:55:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102995</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102995.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102995</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Check the attached sample - right click the link and save the file locally, right click the XSN and select design to open in design mode. The condition I&amp;#39;ve got on the submit button is that it should hide if the string length of field 1 is &amp;gt; 10. You have to tab out of the field for the condition to process, tho (that&amp;#39;s just normal old InfoPath behavior).&lt;/p&gt;</description></item><item><title>Hide a Submit Button based on the string-length of another field</title><link>https://www.infopathdev.com:443/forums/thread/102994.aspx</link><pubDate>Fri, 26 Jun 2015 19:45:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102994</guid><dc:creator>cworley</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102994.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102994</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I have a form that contains a field, Field1, that can only be 225 characters. It is a multi-line text field so I created a validation rule on it with this condition:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string-Length(.) &amp;gt; 225&lt;/p&gt;&lt;p&gt;A dotted red box appears around the box if the user puts in more than 225 characters.&lt;/p&gt;&lt;p&gt;I would like to hide the Submit Button if this Field1 contains more than 225 characters but haven&amp;#39;t been able to do it. I created a Field2 that is a Text Field; &amp;nbsp;I changed&amp;nbsp;its Control to a Calculated Value. The XPath expression formula for Field2 is:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string-length(my:Field1)&lt;/p&gt;&lt;p&gt;This field calculates the number of characters used as you enter type in Field1.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I tried to create a Formatting Rule on the Submit Button that Disables the Control based on this condition:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field2&amp;nbsp;&amp;nbsp; is greater than&amp;nbsp;&amp;nbsp;&amp;nbsp; 225&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;However, this does not disable the Submit Button. &lt;/p&gt;&lt;p&gt;Can anyone help me with this or point me in a different direction?&lt;/p&gt;&lt;p&gt;thanks in advance&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>