Problem with "Rule runs when field changes" - InfoPath Dev
in

InfoPath Dev

Problem with "Rule runs when field changes"

Last post 09-16-2013 11:58 AM by Hilary Stoupa. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 09-12-2013 08:59 AM

    Problem with "Rule runs when field changes"

    Here is my scenario - I have 2 data connections: one is just a list of Disciplines and Lead people; second is a Contact List (just Names). I also have 2 fields "Discipline" (dropdown list populated with data connection 1 info) and "Lead Person" (dropdown with all "Names").
    When Discipline field selected/changed, rule runs that sets "Lead Person" value depending on selected Discipline. I can also change "Lead Person" value by selecting another name from the dropdown. But regardless what is saved, when I run the form, "Lead Person" value changes back as if the "Discipline" field has been changed. I realize that my text is kind of foggy, so here is the example


    Sharepoint list has an entry: Discipline = "Administration"; Lead = "John Smith", so when I select "Administration", the Lead dropdown selected value changed to "John Smith"     
    Then I select another name in the Lead dropdown, let's say "Mary Brown" and click Submit Form. Saved values Discipline = "Administration";  Lead = "Mary Brown"
    Then run the form again and after loading I have Discipline = "Administration"; and the Lead is "John Smith"? Why? Looks like the rule runs on Form Load as well


     


     

  • 09-13-2013 04:24 PM In reply to

    Re: Problem with "Rule runs when field changes"

     Sounds like you may have a default value for the Discipline field? In the data source task pane, right click the field and select properties to see....

    Hilary Stoupa

  • 09-13-2013 05:02 PM In reply to

    Re: Problem with "Rule runs when field changes"

    nope, no defaults... the problem has been resolved (somehow). I removed the data source from the 2nd dropdown and then re-bound the control to the Contact List again, and it's working now.

    Looks like rules have to be set first. Any thoughts on this account?

  • 09-16-2013 11:58 AM In reply to

    Re: Problem with "Rule runs when field changes"

     I'm sorry - I don't understand the question you are asking?

    Hilary Stoupa

Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.