Rule not running for a form connected to a Sharepoint form library. Possible to debug? - InfoPath Dev
in

InfoPath Dev

Rule not running for a form connected to a Sharepoint form library. Possible to debug?

Last post 04-25-2013 01:19 PM by AlexK. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-25-2013 11:43 AM

    • AlexK
    • Top 200 Contributor
    • Joined on 12-31-2012
    • Posts 61

    Rule not running for a form connected to a Sharepoint form library. Possible to debug?

    Here's my scenario:

    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 "enable". The rule sets a flag in infopath (boolean field) to "true".

    2. On form submit, I added a rule to set the flag to "false".

    3. The fields on the form each have rules to "disable this control" when the flag is "false", i.e. after the form is initially submitted.

    4. Testing this, I submit a form to SharePoint, open it up and sure enough the fields are disabled. All good there.

    5. I manually change in the SharePoint item the string field to say "enable", so I would expect my rule to run and the flag updated. I open up the form again.

    The fields are still disabled! The flag is still set to "false"!

    What is going on here? Why doesn'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.
  • 04-25-2013 01:19 PM In reply to

    • AlexK
    • Top 200 Contributor
    • Joined on 12-31-2012
    • Posts 61

    Re: Rule not running for a form connected to a Sharepoint form library. Possible to debug?

    I was able to fix it by doing the following: 1. Ensure that "Include data for the active form only" 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 "dataFields" folder under the data connection instead of "queryFields" With these two things the form now behaves like it should.
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.