Tuesday, May 10, 2011

switching between views in infopath


You have an InfoPath form template with 2 views for it. One is to fill the data and second one is to display that is read-only view.
When user fills the first view and clicks on submit button it has to show second view for the user.

We can achieve this using Rule or code to switch views.

So here I will assume that you have created InfoPath form template with view1 and view2.
And addition to that you have to make the view2 Read only. For this you have to
Uncheck the property Show on the view menu when filling out the form which is located on the general tab of the Properties dialog box of view1 and view2.

Use a Rule to switch b/w views.

For this you need to add Rule to button on your InfoPath form template with two actions.
Submit Using a Data Connection: My Data Submit
And
Switch to view: View2


That’s all you need to do to play with views.
Happy sharepointing.

No comments:

Post a Comment