<?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: Rule not running for a form connected to a Sharepoint form library. Possible to debug?</title><link>https://www.infopathdev.com:443/forums/thread/89251.aspx</link><pubDate>Thu, 25 Apr 2013 20:19:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89251</guid><dc:creator>AlexK</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89251.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=89251</wfw:commentRss><description>I was able to fix it by doing the following:

1. Ensure that &amp;quot;Include data for the active form only&amp;quot; was checked (I had to separate this field into another data connection because that box could not be checked for another field I was using), and

2. Ensure that in the rule I was selecting from the &amp;quot;dataFields&amp;quot; folder under the data connection instead of &amp;quot;queryFields&amp;quot;

With these two things the form now behaves like it should.</description></item><item><title>Rule not running for a form connected to a Sharepoint form library. Possible to debug?</title><link>https://www.infopathdev.com:443/forums/thread/89248.aspx</link><pubDate>Thu, 25 Apr 2013 18:43:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89248</guid><dc:creator>AlexK</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89248.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=89248</wfw:commentRss><description>Here&amp;#39;s my scenario:&lt;br /&gt;&lt;br /&gt;

1. On form load, I added a rule to check if a SharePoint field (from the SharePoint list my form is published to) is set to a string, say &amp;quot;enable&amp;quot;. The rule sets a flag in infopath (boolean field) to &amp;quot;true&amp;quot;.&lt;br /&gt;&lt;br /&gt;

2. On form submit, I added a rule to set the flag to &amp;quot;false&amp;quot;.&lt;br /&gt;&lt;br /&gt;

3. The fields on the form each have rules to &amp;quot;disable this control&amp;quot; when the flag is &amp;quot;false&amp;quot;, i.e. after the form is initially submitted.&lt;br /&gt;&lt;br /&gt;

4. Testing this, I submit a form to SharePoint, open it up and sure enough the fields are disabled. All good there.&lt;br /&gt;&lt;br /&gt;

5. I manually change in the SharePoint item the string field to say &amp;quot;enable&amp;quot;, so I would expect my rule to run and the flag updated. I open up the form again.&lt;br /&gt;&lt;br /&gt;

The fields are still disabled! The flag is still set to &amp;quot;false&amp;quot;!&lt;br /&gt;&lt;br /&gt;

What is going on here? Why doesn&amp;#39;t this work? Either the rule is never run or the condition is failing somehow. And how to debug something like this?

I am using InfoPath 2010 which is published to a SharePoint 2010 form library.</description></item></channel></rss>