Question

I made an Infopath form that has two views, Edit and Print, and published it to SharePoint.

The issue is that as you type a new entry, you can switch to the print view allowing you to print without the need to save the data into SharePoint.

I want to disable that, and I want the print view to be accessed only when Viewing an item from the list.

Was it helpful?

Solution

Create a dummy/hidden field. This field has a default value of 0. When a form is submitted, set this to 1. Now put a rule on form on load. The rule is that when dummy field is 1, the button is enabled and you can switch to Print view. The button is disabled when dummy field is 0 because the form is not yet submitted and preventing the user to get to Print View.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top