in

InfoPath Dev

Conditional formating with repeating section and repeating table

Last post 07-30-2008 01:31 AM by belote82. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-30-2008 12:37 AM

    • belote82
    • Not Ranked
      Male
    • Joined on 07-30-2008
    • Belgium
    • Posts 6

    Conditional formating with repeating section and repeating table

    Hello!

    I've a problem with the conditional formating.

    I want to enable/disable some controls if the user select Yes/no in a dropdownlist.

    It works fine for "single" textboxes, dropdownlist, but doesn't work with repeating tables or sections.

    My condition for single textboxes is "if ControlDropDownValue is not equal to "Yes" hide the control"

    So for the repeating section : "if ControlDropDownValue is not equal to "Yes" don't allow user to insert or delete this control".

    As the default value for my dropdown is "No", the repeating section is well disabled.

    But when i change the value to Yes, the repeating section is still disabled...

    Do you have an idea?

    Do I have to do something in the code behind?

    Thank you so much

     

    Xavier

  • 07-30-2008 01:00 AM In reply to

    • Anuma
    • Top 25 Contributor
      Female
    • Joined on 07-20-2005
    • India
    • Posts 172

    Re: Conditional formating with repeating section and repeating table

    Hi, Can you please verify text for “Yes” in the ControlDropDownValue drop down and condition you have used for repeating section [if ControlDropDownValue is not equal to "Yes"]? Xml is case sensitive. So you need to use same value for both. This is worked for me when I use same value in both places.

     

    CH.Anuma / http://www.GGKTech.com
  • 07-30-2008 01:31 AM In reply to

    • belote82
    • Not Ranked
      Male
    • Joined on 07-30-2008
    • Belgium
    • Posts 6

    Re: Conditional formating with repeating section and repeating table

    My mistake...

    I'm stupid :p

    When the condition is NOT, AND is replaced by OR :p

    stupid stupid stupid!

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