show/hide repeating sections - InfoPath Dev
in

InfoPath Dev

show/hide repeating sections

Last post 04-20-2011 07:48 AM by awillms11. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-08-2011 06:43 AM

    show/hide repeating sections

    I am fairly new to InfoPath, but I have a decent understanding of xml and C#, so please bear with me if I'm asking a foolish question.

     

    I have created an InfoPath 2010 form based upon an .xsd schema using repeating sections within a table.  In that table, I have three unique repeating sections within each row of the table, along with three corresponding command buttons (i.e. cmdA, cmdB, cmdC, repSecA, repSecB, repSecC).  My hope is to not display any of the repeating sections until the user clicks one or more of the command buttons that correspond to each repeating section.  Once they click the button, the repeating section becomes visible and the user is allowed to enter data into the appropriate fields, and the repeating section functions as normal (allowing the user to add data as necessary/desired).

     

    I would prefer to do this in C# if possible, but I am open to other options as well.

     

    Thanks!

     

    Tony Willms

  • 04-20-2011 05:08 AM In reply to

    • Skarn
    • Top 50 Contributor
      Male
    • Joined on 04-20-2008
    • Australia
    • Posts 198

    Re: show/hide repeating sections

    Consider fields to store a toggle value when a button is pressed - I like using -1 and 1 so my button rule can just be current value of field * -1

    Then put conditional formatting on the table rows (or a section within which the whole table is placed) to be hidden or not depending on the value of the associated toggle field.

  • 04-20-2011 07:48 AM In reply to

    Re: show/hide repeating sections

     Thanks!  I'll give that a try.

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