Hiding or displaying InfoPath sections with C#

R

rkellow

Hello,

Is there a way to conditionally show (or not show) a section in an
InfoPath form with C# code?

Any help would be appreciated.

Thanks in advance,
Rob
 
A

Andrew Watt [MVP - InfoPath]

Hello,

Is there a way to conditionally show (or not show) a section in an
InfoPath form with C# code?

Any help would be appreciated.

Thanks in advance,
Rob

Rob,

As far as I am aware you can't do that programatically in the current
version.

Andrew Watt
MVP - InfoPath
 
R

rkellow

Thanks for the reply Andrew. It's not exactly what I was hoping to
hear though. I have a dropdown at the top of a form and depending on
what the user selects in it I wanted to show one section or another.

Thanks again,
Rob
 
F

Franck Dauché

Hi Rob,

In that case, you don't need C# code. You can use conditional formatting in
your sections to Show/Hide based on the value stored in the node linked to
your drop down box.

Franck Dauché
 
A

Andrew Watt [MVP - InfoPath]

Thanks for the reply Andrew. It's not exactly what I was hoping to
hear though. I have a dropdown at the top of a form and depending on
what the user selects in it I wanted to show one section or another.

Thanks again,
Rob

Rob,

To do it in the design interface right click on the section, choose
Properties then select the Display tab, the click on Conditional
Formatting.

Andrew Watt
MVP - InfoPath
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top