Custom Task pane drop down box question

B

Brett

I am new to infopath and am looking for an example how I can take a dropdown box selection and use that to change to a new view in my form.

Any help is appreciated and thank you in advance.

Brett
 
J

Jerry Thomas [MSFT]

You would have to add code in the After Change event.

What about using buttons?
They have a 'change view' rule built in.
Set the name of the button to [Data Entry], or [Approvals] and then set the
rule to change to that screen!

--
Jerry Thomas
Microsoft Office InfoPath
---------------------------------------
This posting is provided "As Is" with no warranties, and confers no rights.
Use of any included script sample are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
Please do not send email directly to this alias. This alias is for
newsgroup purposes only.


Brett said:
I am new to infopath and am looking for an example how I can take a
dropdown box selection and use that to change to a new view in my form.
 
S

Steve van Dongen [MSFT]

Brett said:
I am new to infopath and am looking for an example how I can take a dropdown box selection and use that to change to a new view in my form.

To switch a view:
XDocument.View.SwitchView(name);

To access the XDocument object from the task pane:
window.external.Window.XDocument;

Regards,
Steve
 

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