Switch to read-only view -- InfoPath

USE A RULE TO SWITCH TO A READ-ONLY VIEW AFTER SUBMIT

Add a Rule to the Submit button control on your InfoPath form template that has the following 2 Actions:
           Submit using a data connection: SharePoint Library Submit
and
         Switch to view :  View2

USE CODE TO SWITCH TO A READ-ONLY VIEW AFTER SUBMIT

Add the following C# code to the Clicked event handler of the Submit button control on your InfoPath form template:
       DataConnections["SharePoint Library Submit"].Execute();
          ViewInfos.SwitchView("View 2");

Comments

Popular Posts