how to change a view from a dropdown selection

I

iker

Hi!

I have a problem on changing a form view from a dropdown selection using c#
code. I "know" that the only available event for that purpouse is "onClick"
event, but could anyone give me any solution please?

thanks.
 
G

Greg Collins [InfoPath MVP]

You need an OnAfterChange event behind the drop-down list and then code to switch the view:

XDocument.View.SwitchView(ViewName);
 
Top