InfoPath 2010 - rules not working as expected - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

InfoPath 2010 - rules not working as expected

Last post 11-28-2016 01:00 PM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-23-2016 08:56 AM

    InfoPath 2010 - rules not working as expected

    Please excuse me if this question seems silly, but it's my first attempt at using InfoPath.

    I have one row, with 9 fields:-

    txt01, txt02, txt03, txt04, txt05, txt06, drop01, drop02, drop03

    the drop down boxes have values " ", 1, 2, 3, 4, 5

    By default, each drop down box is set to " " but I want a rule that says if any of the txt fields are not blank, then the drop down box MUST have a value of 1, 2, 3, 4 or 5 selected (and the user cannot submit the form without choosing one of these values).

    I did try to set up a test expression rule that said:-

    Condition:
    my:myFields/my:txt01 != "" OR my:myFields/my:txt02 != "" OR  my:myFields/my:txt03 != "" OR my:myFields/my:txt04 != "" OR my:myFields/my:txt05 != "" OR my:myFields/my:txt06 != ""

    Action:
    Set a fields value: drop01 = "3"

    but when I entered data into any of the txt fields, drop01 stayed as " " 

    How can I achieve the above? 

  • 11-28-2016 01:00 PM In reply to

    Re: InfoPath 2010 - rules not working as expected

     Where is the rule? I'd guess you want validation rules here, not action rules - on the fields bound to the dropdowns.

    Hilary Stoupa

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