Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / InfoPath

InfoPath Forms 2013 - Part 1

4.88/5 (9 votes)
12 Dec 2013CPOL3 min read 65.2K   7  
InfoPath Forms 2013

Introduction

InfoPath is designed to make it easy to build rich forms-based applications on the Microsoft SharePoint Server platform. Microsoft InfoPath 2013 in conjunction with Microsoft SharePoint Server 2013 and InfoPath Forms Services has many features for developers. InfoPath Forms Services, which is available in SharePoint Server 2013, enables you to deploy an InfoPath form template to a SharePoint Server so that users without the InfoPath rich client can open and fill out InfoPath forms in a Web browser.

New Features

  • SharePoint Sandboxed Solutions
  • Publish Forms with One Click
  • Enhance SharePoint List Forms
  • Host Forms on Portal Pages using the InfoPath Form Web Part
  • Richer Web Forms
  • Standards Compliant Browser Forms

New Controls

The feature gap between client and browser forms has been narrowed, creating a more consistent form filling experience for all users. Controls and functionality that are now supported in browser forms include the following:

  • Bulleted, numbered, and plain lists
  • Multiple selection list boxes
  • Combo boxes
  • Picture buttons
  • Hyperlink capabilities
  • Choice group and section
  • Date and time controls
  • Person/group pickers
  • Filtering functionality

Write and Edit Code using Visual Studio

The Microsoft Visual Studio Tools for Applications IDE that was integrated with InfoPath 2010 has been removed in InfoPath 2013. To write or edit form code in InfoPath 2013 now requires Visual Studio 2012 with the Microsoft Visual Studio Tools for Applications 2012 add-on installed. The programming experience itself has not fundamentally changed, but you can now use the full Visual Studio development experience when writing managed code for your InfoPath forms.

Create a simple InfoPath form

Open the InfoPath Designer:

Image 1

Double click the SharePointFormLibrary:

Image 2

After that, we need to create a group:

Image 3

Enter the name of the group and select the Type as ‘Group’:

Image 4

Here we are entering some fields in that group:

Image 5

Select the field’s data type:

Image 6

We entered four more fields:

Image 7

Drag and drop all the fields to the form tables:

Image 8

Create a repeatable table:

Here we are creating “EducationalInfo ”as Repeating Table:

Image 9

Now the form shows like:

Image 10

Publishing the InfoPath form to the SharePoint Library:

Image 11

Before publishing the form, we need to save that from:

Image 12

After saving the form publishing wizard will open and here we need to enter the site URL:

Image 13

Here, we uncheck the option “Enable this form to be filled out by using a browser” (This part I will explain later in Part 2):

Image 14

Here we are creating a new library:

Image 15

Enter the name of the new Library:

Image 16

Here we need to select group:

Image 17

Inside the group, we need to select the fields:

Image 18

Now it’s verifying the form information and then click publish:

Image 19

The form published successfully:

Image 20

Refresh the site and add new document:

Image 21

Now the InfoPath forms open and we can insert some values:

Image 22

In the repeatable table, we have some option which is shown in the figure:

Image 23

Click on the save button its values directly saving in the SharePoint Library:

Image 24

Refresh the site and it shows the data:

Image 25

Summary

In Part 1 of this article, we have explored how to create a simple InfoPath forms and how to publish into SharePoint site.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)