Action Rule Help: Set field's value not working - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Action Rule Help: Set field's value not working

Last post 03-14-2019 05:24 AM by zakaria.botros. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 05-14-2015 11:51 AM

    • jlmann
    • Not Ranked
    • Joined on 05-14-2015
    • Posts 4

    Action Rule Help: Set field's value not working

     Hi All,

     I have a checkbox (chkA) and three textboxes (txtB, txtC and txtD).  I need to fill txtC with the value entered in txtB when chkA is checked, but doesn't work in preview or Sharepoint.  I created the following action rule:

    Condition: chkA = TRUE

    Action: Set field txtC value to txtB.

    Seems pretty straightforward to me, but it is not working.

    -----------------------------------------------------------------------------------------

     

    Notes:

    I have 4 other rules on txtC.  2 are validation rules and 2 are formatting rules.

    Validation Rule 1 

    Condition: chkA = TRUE

    Screen Tip: Cannot be blank.

    Validation Rule 2

    Condition: txtC is not blank and txtD is not blank.

    Screen Tip: txtC should be less than txtD.

    Formatting Rule 1

    Condtion: chkA = FALSE

    Formatting: Hide txtC and disable txtC.

    Formatting Rule 2

    Condtion: chkA = TRUE

    Formatting: Nothing (enables txtC).

    ----------------------------------------------------------------------------------------------

    Please note all textboxes are Decimal data type.  Also, using InfoPath 2010.

    Could the rules be causing a conflict (possibly formatting rule 2)?  If it is then I don't see why.

    Please let me know if you have any questions.

    Your help is greatly appreciated.

    Thanks,

    Joe

  • 05-14-2015 12:27 PM In reply to

    Re: Action Rule Help: Set field's value not working

    What field is the action rule set on?

    Hilary Stoupa

  • 05-15-2015 04:34 AM In reply to

    • jlmann
    • Not Ranked
    • Joined on 05-14-2015
    • Posts 4

    Re: Action Rule Help: Set field's value not working

    Thanks for responding.  All rules mentioned above are set on field txtC.

  • 05-15-2015 04:56 AM In reply to

    • jlmann
    • Not Ranked
    • Joined on 05-14-2015
    • Posts 4

    Re: Action Rule Help: Set field's value not working

     I got it resolved!

    I added the action rule to chkA instead of txtC and then it worked.

     Hilary thanks for your help.  Your question sent me down the right path.

    Take care,

    Joe

  • 05-15-2015 08:14 AM In reply to

    Re: Action Rule Help: Set field's value not working

    Wonderful!

    A common issue I see is rules set on the target field. But rules fire when a field changes, so if the rule to set txtC is ON txtC, as you realized, the rule was not going to fire. :)

    Hilary Stoupa

  • 03-14-2019 05:24 AM In reply to

    Re: Action Rule Help: Set field's value not working

    oh my god, this is a masterpiece. Your answer Hilary Stoupa is solved my issue as well. I like the fire demonstrative example so much .
Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.