Blog Posts
- Assigning a unique reference number and using it automatically in a filename – Nov 2011
- One form, multiple views: switch on open or in progress – Nov 2011
Snippets
- SharePoint List Data Connections – difference between Data versus Query fields:
Setting a query field value allows you to filter the data before it is pulled into the form. Use Query if displaying direct, use Data if performing a filter within the form. To do the filter – select the secondary source field, click the Filter button, then in the 3 columns – first column, choose select another field, then pick the field to map
. - Switching Form Views – controlling which form view is displayed on open:
Open the form in InfoPath Designer. Click on the Data tab in the ribbon. In the Rules section of the ribbon, click Form Load. Will then open the Mnaage Rules taskpane with the options for controlling which form loads. Create a rule, set condition (I use a hidden Form Status field to control) and for the action, choose Switch View and select the form view to open. In the Form Options, disable displaying views in the browser form. - Close the browser window as part of the Source URL used to open the form (in the browser) – link below with full details
In created page, add code:
<script language=”javascript” type=”text/javascript”>
window.open(“”, “_self”);
window.close();
</script>
Links
- Building SharePoint applications with InfoPath Part 1 and Part 2 – MSDN articles, Oct 2010
- SharePoint List Data Connections – InfoPath Team Blog, May 2010
- How to close the browser window when closing the form – John Liu, June 2011


