Wednesday, October 29, 2008

Use Option Control to keep Preferred Opening View

Introduction

The next article describes how to use an option control, to save the preferred view when opening the InfoPath document;

Step by Step

1. Create your different views
2. Add a option control to view 1
3. Double Click the Option Controls, and set the Value when selected

4. Open the Form Options,  Menu Tools -> Form options
5. Select Open and Save item in the Category list
6. Click the Rules button in the Open behavior section
7. Click the Add button to create a new rule
8. Click the Rule Name to SwitchToView1
9. Click the Set Condition button
10. Select the Option Control Field in the first dropdown list box
11. Set the value of the Option 1 (See Value when selected) in the third col.
12.Click the Ok button

13. Click the Add Action button
14. Select Switch Views in the Action dropdown listbox
15.Select View 1
16. Repeat from Point 7 to 16  for all the other views.

.

No comments: