Check Box Limit - Need 7 - InfoPath Dev
in

InfoPath Dev

Check Box Limit - Need 7

Last post 09-15-2008 05:57 PM by PAWInfo. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 09-14-2008 11:03 PM

    • PAWInfo
    • Top 200 Contributor
    • Joined on 09-14-2008
    • Melbourne, Australia
    • Posts 52

    Check Box Limit - Need 7

    Hello,

    My user insists on 7 check boxes, where if you check one, rest are disabled.  Easy enough with Radio buttons.  He really insists on Check Boxes.

    I noticed the and/or conditions stop at 5, meaning I cannot do more than 5 check boxes.  Is there a way to have more conditions?

     Thx,

     Paul W.

     

  • 09-15-2008 04:02 AM In reply to

    Re: Check Box Limit - Need 7

    Hi Paul,

    Use the following expression in the conditional formatting of all check boxes.

    my:field1 = string(true()) or my:field2 = string(true()) or my:field3 = string(true()) or my:field4 = string(true()) or my:field5 = string(true()) or my:field6 = string(true()) or my:field7 = string(true())

    Here field1,field2,field3,.. etc. are the check box fields.

    It will help you.

    Swathip
    www.ggktech.com
  • 09-15-2008 04:57 PM In reply to

    • PAWInfo
    • Top 200 Contributor
    • Joined on 09-14-2008
    • Melbourne, Australia
    • Posts 52

    Re: Check Box Limit - Need 7

    Thanks for code, that makes sense.  But where do I put it, as I am finding my way.

    I am not seeing where I can add code in Conditional Formatting.

    Is it somewhere else?  I just get the standard Add/Modify/Remove in a Gui box but cannot change the code.

    Paul W.

  • 09-15-2008 05:37 PM In reply to

    Re: Check Box Limit - Need 7

    For the first drop down in the conditional formatting dialog when you add new conditional formatting, change it to "The Expression" then try the expression provided in the earlier post (using the correct xpath to point to your own fields).

    Hilary Stoupa

  • 09-15-2008 05:57 PM In reply to

    • PAWInfo
    • Top 200 Contributor
    • Joined on 09-14-2008
    • Melbourne, Australia
    • Posts 52

    Re: Check Box Limit - Need 7

    Thx, works like a charm now!

     Paul W.

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