Hiding selective repeating section - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Hiding selective repeating section

Last post 07-11-2011 03:03 AM by Jimmy. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-09-2011 08:34 AM

    • GemenZ
    • Not Ranked
    • Joined on 07-09-2011
    • Posts 1

    Hiding selective repeating section

    Hi,

     I have a doc that has the following fields:

    [Drop down list 1] - values 0, 1, 2
    [Drop down list 2] - values 0, 1, 2
    etc.

    [Repeating Section]
    - Field A
    - Field B

    I have total of 10 sections, let's say there names are 1, 2, .., 10. So, my repeating section place will look like this:

    [Repeating Section - 1]
    - Field A
    - Field B
    [Repeating Section - 2]
    - Field A
    - Field B
    ...
    [Repeating Section - 10]
    - Field A
    - Field B

    Now. I would like to set the "Field B" to "false" based on the "Drop down list 2"=1, which would hide the [Repeating Section - 2]. The result is woul be the following:

    [Drop down list 1] - values 0, 1, 2
    [Drop down list 2] - selected option with value 1

    [Repeating Section - 1]
    - Field A
    - Field B
    [Repeating Section - 2] - this sections should be hidden and not displayed
    - Field A
    - Field B = false
    ...
    [Repeating Section - 10]
    - Field A
    - Field B

     

    I am new to InfoPath. I know this should be relatively simple, but I've already spent 2 days after work with no food, beer and sex.. It started getting to me... I can make all repeating sections hide, but I can't make that one single one be hidden. I started thinking that the Universe does not work that way and I would need to add aother section for my needs, but I am pretty confident there is a way to achieve what I am trying to achieve...

    ---
    Don't yell at me... Tell me what I did wrong. I am a special newbie - I learn from my mistakes.
  • 07-11-2011 03:03 AM In reply to

    Re: Hiding selective repeating section

    Hello GemenZ,

    Sorry to hear you've been losing sleep over this matter.  It is possible to conditionally hide certain rows within a repeating section, but I'm not graspoing the logic you have at work here. For example, why would selecting 1 in the second dropdown cause section 2 to be hidden?  What's the logic behind that?

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.