Please, Help me about hide a section and show other section - InfoPath Dev
in

InfoPath Dev

Please, Help me about hide a section and show other section

Last post 11-09-2009 03:33 AM by chhaya singh. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 11-06-2009 12:28 AM

    Please, Help me about hide a section and show other section

     i have two section on form InfoPath and a button.

    The first section, i have two textbox.

    The secont section, i have three textbox. 

    When i click on the button, the first section hide and second section show.

    Please, help me

    Thanks and waiting your reply

  • 11-06-2009 04:48 AM In reply to

    Re: Please, Help me about hide a section and show other section

    You can take a checkbox .

    1) checkbox property set Value  When Checked = 0 and  Value  When Cleared = 1.

    2)Then on your 1st section set Conditional Formatting ( That when checkBox is equal to 0 , Hide this section).

    3)Then on your 2nd section set Conditional Formatting ( That when checkBox is equal to 1 , Hide this section).

    4)Write a rule on your button where you set your checkbox value to 0.

    Try this and let me know if you face any problem.

  • 11-08-2009 11:11 PM In reply to

    Re: Please, Help me about hide a section and show other section

     Sir,

     It's really really good :)

    It work well 

    ...

     But

     I need code from visual studio, not from interface on infopath and set rule or formatting. Only use code behind.

    Please, please, help me again :)

     

     

  • 11-09-2009 03:33 AM In reply to

    Re: Please, Help me about hide a section and show other section

    I don't think so you can hide a section through code. B'cause there is no property  in code for hidding a section .

     But You can try it like this repeate first 3 steps mentioned  in previous post. Then instead of writting a rule on the button, set the value of the check box though button code.

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