Automating the Replacment of Choice Groups Based on a Combo Box - InfoPath Dev
in

InfoPath Dev

Having trouble finding a blog or post that answers your question? Check out our Custom Search Page

Automating the Replacment of Choice Groups Based on a Combo Box

Last post 08-03-2012 11:56 AM by Numkin. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 08-02-2012 12:49 PM

    • Numkin
    • Not Ranked
    • Joined on 08-02-2012
    • Posts 9

    Automating the Replacment of Choice Groups Based on a Combo Box

    Good Morning,

     My knowledge if InfoPath is very limited. I have created several forms, but have not used InfoPath to anywhere near its potential. I am currently using InfoPath 2010. The environment this form will be pushed to includes, 9 different areas the form will reside with up to 100 people/computers that will be using this system.

    I have a combo box that has a set of predefined options in it. When one of those options are selected I want to either keep or replace a Choice Group upon update of that combo box. I'm sure it is possible, but do not have any clue on how to handle it. I was hoping a simple rule would work, but it doesn't seem as they are quite that powerful. I don't know much about InfoPath coding. Last attempt I had on it was not ideal. I installed the code addon on my station and wrote some code. However, when I published it, it seemed as everyone who used this form had to install the code addon. Since our system requires admin credentials to install anything, and it being on about 100 computers, this is not ideal (Though I'm not sure if I did something wrong).

     My biggest quesion is if this can be done without installing the code addon to every computer and if so, how?

     Thanks for your time and consideration!

  • 08-03-2012 09:52 AM In reply to

    Re: Automating the Replacment of Choice Groups Based on a Combo Box

    Choice groups and rules don't work too well together.  Consider simply using 2 section controls instead.  When the dropdown value is equal (or maybe not equal) to a certain value you want to hide the section control.  Hope that solution works for you!
    Anson Hidajat
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™

  • 08-03-2012 11:16 AM In reply to

    • Numkin
    • Not Ranked
    • Joined on 08-02-2012
    • Posts 9

    Re: Automating the Replacment of Choice Groups Based on a Combo Box

    Thanks for your reply. Sorry for my basic questions, I've found where I can hide a control under the formatting rules. However, the only way it seems to work is hiding the control the rules is created for. How do you pick what control is hidden? I assume I can't put the rule on the section control since it will never fire.

     Thanks!

  • 08-03-2012 11:21 AM In reply to

    Re: Automating the Replacment of Choice Groups Based on a Combo Box

    The formatting rule always has to be on the control its hidden on.  Your condition can specify any field however.  So you can have the formatting on that section control trigger when the dropdown field changes.  Its a little backwards from you're thinking, but hopefully that makes sense to you :)  If you are still running into issues, I can try to explain it further.
    Anson Hidajat
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™

  • 08-03-2012 11:36 AM In reply to

    • Numkin
    • Not Ranked
    • Joined on 08-02-2012
    • Posts 9

    Re: Automating the Replacment of Choice Groups Based on a Combo Box

    Aye, quite oppisite of the way I'm use to programming. The next question is if you can unhide a control. Maybe have it initially start up as hidden and then if Control = A then section control unhides. Sorry for more questions. I know my users and if they have more on the screen then they need, its not a pretty ending :)

  • 08-03-2012 11:48 AM In reply to

    Re: Automating the Replacment of Choice Groups Based on a Combo Box

    Unhiding a control is simply the inverse of hiding it:

       If Control != A hide section

    Jimmy Rishe / Software Developer / InfoPath MVP
    Qdabra Software
  • 08-03-2012 11:56 AM In reply to

    • Numkin
    • Not Ranked
    • Joined on 08-02-2012
    • Posts 9

    Re: Automating the Replacment of Choice Groups Based on a Combo Box

    sigh. I stop thinking when I almost ready to go home. Thanks! Or i could just simply hide them both if it = "". Thanks for answering the slow person today!

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