Button Programming - InfoPath Dev
in

InfoPath Dev

Now you can find InfoPathDev on YouTube and Twitter!
Find Qdabra on Facebook

Button Programming

Last post 02-09-2010 01:32 AM by Qazi Anis. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-08-2010 09:59 PM

    Button Programming

     Hello,

    I am new to infopath.  Hopefully some kind soul out there can help.

    I would like to create a button in infopath that can be used to open / close a section of a form.

    Upon click the section should open and the button label should change to "close section"

    Click it again, and I would like the section to close and the label to change to "open section"

     Does anyone know how to do this?

    Thanks,

    Mike

     

     

  • 02-09-2010 01:32 AM In reply to

    Re: Button Programming

    we can use conditional formatting to hide/show a section, if you want to show/hide it on a button action.

    have a field say hide_section_A set its default value to Hide.

    on the section right click and go to conditional formatting and give a condtion

    if hide_section_A is not equal to Show

    and check the hide this control checkbox.

    now double click on the button go to rule and in rules add ->

    on condition write a condtion

    if  hide_section_A is not equal to Show

     add action set value of a field

    hide_section_A = Show.

    also check the checkbox stop processing rules when this rule finishes 

    and another rule

    if  hide_section_A is not equal to Hide

     add action set value of a field

    hide_section_A = Hide.

    also check the checkbox stop processing rules when this rule finishes

    on the button properties set the default value of the button(Fx) to  hide_section_A

    Qazi Anis
    Programmer Analyst
    Bitwise Solutions
    my blog
Page 1 of 1 (2 items)
Copyright © 2003-2010 Qdabra Software. All rights reserved.
View our Terms of Use.