Order of controls and rules - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Order of controls and rules

Last post 03-06-2025 07:42 AM by Hilary Stoupa. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-04-2025 03:35 PM

    • SeanPRyan
    • Top 200 Contributor
      Male
    • Joined on 02-02-2012
    • Kansas City area
    • Posts 62

    Order of controls and rules

    I am comparing data in a few fields, two of which are percent and dollars. I am comparing these fields to a secondary connection value that appears on my form as hints. Let's say 10% appears in the percent field and $200 in the dollars field as hints. On a changeable percent box, I want to change a text status to invalid if the main form entry percent field is greater than 10. Next, I want to say "Invalid dollars" if less than 200 for the fillable dollar field. If I move top down, entering the percent first and the dollar second, everything works fine. If I pull a switcharoo and change my mind, going backwards and re-changing the percent to a valid amount, my text status doesn't change. In short, top down and done, works every time. Bottom up or switching aroundback and forth with the order doesn't fire the rule on the percent field again. Sorry for this confusing explanation. Secondary Connection: Percent - Shows as a hint Secondary Connection: Dollars - Shows as a hint Main Form Fillable field: Percent Entered Rule1 on this field sets the text of Text Status If > 10 then Invalid Alternate If >=10 then Valid Main Form Fillable field: Dollars Entered Rule2 on this field sets the text of Text Status If =200 then Valid Main Form viewable but not fillable: Text Status. Any ideas are welcome. Thank you!
    Sean
  • 03-05-2025 07:33 AM In reply to

    • SeanPRyan
    • Top 200 Contributor
      Male
    • Joined on 02-02-2012
    • Kansas City area
    • Posts 62

    Re: Order of controls and rules

    I figured out what I needed. I was updating a single field from 2 different fields. I decided to have a valid for dollars and a valid for percent. So, the visible dollar field updates only one field and the visible percent updates the other. Then, in a third hidden field, I concat the results. Then the final rule says if the field contains invalid, then make the visible text status field invalid or if it does not contain invalid, make the visible status valid. An example of how this field may look is: Valid Invallid. This would change the status field to invalid.
    Sean
  • 03-06-2025 07:42 AM In reply to

    Re: Order of controls and rules

    Nicely done - sorry you ended up talking to yourself here, and thanks for posting your answer :-)
    Hilary Stoupa

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