Chapter 12. Forms Management

WHAT YOU WILL LEARN IN THIS CHAPTER:

  • Information collection techniques with InfoPath 2010

  • How to create and InfoPath form template

  • How to create a reusable template part

  • How to connect to external data using InfoPath

An important aspect of working in a business environment and collaborating with others is the collection of information. A common challenge is to identify ways to make this process more efficient and effective. One solution is to collect information in a form that contains preconfigured fields for the data you want to receive. This ensures that all the required information is collected, and it also helps consolidate information which can be used for comparison or calculations. For example, by collecting feedback from your customers on their satisfaction level with your services, you can identify trends or averages in their responses. If the average of all customer satisfaction ratings is 4.5 out of 5, and a customer submits a rating of 3 out of 5, it is easy to see that the response is below average. If all customer feedback was submitted verbally or via a less structured format such as email, it would be more difficult to compare results in a calculated manner.

Forms simplify the task of gathering important information. In Microsoft Office, you can use InfoPath Designer to create electronic forms that you can then publish to team members and others through SharePoint. InfoPath is straightforward enough that nonprogrammers can use it for a simple forms creation system, yet flexible enough for programmers to create sophisticated forms-based applications.

After reading this chapter, you should feel comfortable identifying scenarios where the use of InfoPath forms would be beneficial for your organization for the collection of information from various key stakeholders. This chapter requires that you use Microsoft InfoPath Designer 2010 for the creation of form templates. In addition, in order for users to complete forms created in InfoPath Designer, you must either design the forms to be browser compatible or the users will need to have Microsoft InfoPath Filler installed on their systems. For the majority of the exercises in this chapter, you will be creating browser-based forms.

WHAT IS INFOPATH?

InfoPath is an application that integrates with SharePoint to collect and present data. InfoPath forms are XML-based documents that you can design to help collect data in ways that the standard SharePoint interface cannot. While InfoPath can be used on its own, it truly excels as a data collection tool when combined with SharePoint. Some ways of using InfoPath within an organization include:

  • Team reports: Team members can create weekly status reports from which the team's manager can create a single report that tracks the team's progress. This involves creating a form template that features fields related to weekly activities and publishing it to a shared location, such as the team's SharePoint site. Every week, the manager can access a special view that displays all the forms and then she can merge them into a single document. This consolidation reduces the amount of work that a manager must perform each week. She can even customize that single document to present to her own management team.

  • Data connections: Sales people can use forms to report on customer information from a centralized database containing details on the customer and previous purchases. They can also attach a document with a record of meetings and communication with the customer so that colleagues can access this later. Again, you must create a form template and store it on a centralized team site, but this template features special data connections that display customer data directly from the database. This reduces duplicate data by eliminating the need to recreate this content in SharePoint because it already exists in the database, improves data access, and allows the sales team to make accurate decisions. With InfoPath, you can also submit information to other data systems via a web service, which means that you don't have to enter data into two separate systems.

  • Customer web forms: Customers can visit a web page and complete an electronic form to request information on a company's products and services. The form is submitted securely to a location, and the customer is supplied with the requested information. A special feature of InfoPath, when utilized with the Enterprise version of SharePoint Server, is the ability to create forms that customers can view and edit via the browser. This eliminates the need for users to have special software on their computers.

  • Employee feedback: A human resources department can get feedback from employees on new policies and procedures. To help control the collection of feedback, the department sends a form embedded in an Outlook email message. Employees can complete the form and send it directly back the human resources SharePoint site where the information is collected and analyzed. Employees can keep a copy of their submitted information in a folder in Microsoft Outlook for later reference.

CREATING AND CUSTOMIZING AN INFOPATH FORM

You use InfoPath in situations when you need to improve how information is shared or collected in your organization. One of the primary advantages of using InfoPath is that the interface can be made very simple and intuitive for users to add and complete information. An example of a typical InfoPath form is shown in Figure 12-1.

FIGURE 12-1

Figure 12-1. FIGURE 12-1

Before a user can complete an InfoPath form, you must start with a form template, which someone using the InfoPath Designer application creates. An InfoPath form template is a file with an .xsn extension. You then have to publish the template to a location where users can complete the form by adding information. Each time a user completes and saves the form, a new file is created. The data file that is created when a user completes a form has an .xml extensions. For example, if you take the example of the weekly status reports described in the introduction of this chapter, a single form template exists that contains all the required and optional fields that the form should contain. This form template would be published to the SharePoint site using a method similar to that described in Chapter 4 for document libraries or Chapter 6 for content types. Each team member would then click the New button on the Library toolbar to open a new instance of the form. Once the form is completed, the team member would save it to the library and create a new form data file. If there are five members on a team, then each week five new form data files are created in the library as the team members create their status reports. However, there would only be one form template file for the status reports.

To get started with using InfoPath, you must first create or design a form template. In the first Try It Out in this section, you open an existing sample template in Design view and modify a field to make it more appropriate for your organization. You can also make modifications to the form to give it a look and feel that is more appropriate for your organization. This may include adding a company logo to the various form views or adopting a color scheme that matches that of other company documents and interfaces. The second Try It Out in this section illustrates how to do this.

CORE CONCEPTS

In InfoPath, the Ribbon, shown in Figure 12-9, contains the most common design activities and concepts related to customizing or developing a form template. By clicking any of the tabs, you get a listing of actions relevant to that subject.

You start with a blank form template, and it launches with fields or controls. You may choose to apply a layout to the form. As you add controls to the form in design mode, fields automatically appear in the form's data source to support the use of these controls. The data source represents all the available fields that have been added to the form template. You can view the data source by clicking the Show Fields option on the Data tab of the Ribbon. Next, you can create various views for the form, which are similar as those discussed in Chapter 4 related to lists and libraries, but in this case they are specifically located in the form. You can basically create a set of criteria that displays your data in different ways, depending on what you want to collect or represent. You then check your design to make sure that it's compatible in the browser where it will operate. Some field types are not suitable for use in a web browser, so when creating a form for the browser, it is important to only include elements that are supported. InfoPath has a Design Checker mode that helps support you with this. Finally, you publish your form template so that others can use it and so that you can begin collecting data.

FIGURE 12-9

Figure 12-9. FIGURE 12-9

Note

To learn how to create and publish a form template, see the next section, "Working with Form Templates."

If you are not creating your form from an existing file, you should take time to plan it out. By considering your information requirements in advance and sketching a form out on paper, you can determine what your form and data source elements should be before you even start creating the form template.

Page Design

The Page Design tab allows you to create tabular layouts in your form to control how information is presented. Quite often, in order to create a form that contains multiple columns of information, you need a table to effectively organize everything. From the Page Design tab, you can:

  • Insert a predefined layout into your form template that corresponds to your need

  • Create or change views

  • Apply style changes or themes to your form

  • Apply page settings such as margins or print settings

  • Configure header and footer settings

Controls

Once you lay out a form and define its overall structure, the next step is to add the fields that the form will contain. InfoPath offers a variety of controls that can be used to effectively collect and display information in a form, including textboxes, rich text boxes, selection listboxes, data pickers, checkboxes, option buttons, buttons, and sections.

Adding controls is closely linked to creating the form's data source, which is covered in the next section. You can start with a blank form template and create the data source by adding controls to the form. As you add a control to the form, an item is created automatically in the data source to represent that control. You can add a control by selecting the area in the form where the field is to appear and clicking on the control from the Home tab of the Ribbon menu. You should name your fields as you add the controls. You can rename a field by selecting it and editing the name property in the Ribbon menu as shown in Figure 12-10 or right-clicking the field and selecting the control Properties. The name cannot contain spaces and should be intuitive. When you open the Properties dialog box, you will see other aspects of the field that you can customize, such as default values, display options, or selection values. Each type of control has its own set of unique attributes and properties. Some controls are not supported in browser-based forms and are only available when using the InfoPath Form Filler tool for the completion of forms. Therefore, when planning your forms, it is important to consider the medium by which they will be completed and the availability of specific controls to support your requirements.

FIGURE 12-10

Figure 12-10. FIGURE 12-10

Textbox

A textbox can hold all sorts of information types such as Name, Phone Number, or Currency. When you edit the properties of a textbox, you can determine what format the information should be stored as by selecting the Data Type. When designing a form using this field type, you can have default values populated based on a user's selection for other fields. InfoPath also supports the use of customizable rules that allow you to perform actions such as show a dialog box message or set a field's value based on the user's selection of an item or activity within the form. You may also include placeholder text that demonstrates to a user the type of information that the field should contain or how they can complete the item. Some of the options related to the textbox control are listed in Figure 12-11, including some of the formatting and display alternatives:

FIGURE 12-11

Figure 12-11. FIGURE 12-11

  • Auto Complete: This option suggests words or phrases to a user as she is completing a form based on previously entered options. Sometimes Auto Complete can make the process for filling out a form easier for the users. However, it is not typically appropriate for forms where information entered may be of a sensitive or confidential nature.

  • Spell Check: This enables spell checking on content stored in the field.

  • Multi-line: By using this option, you can specify whether a textbox can include paragraph breaks or if text can wrap. This is helpful for situations where the text may exceed a single line. If you do select Multi-line, you can determine whether the control should allow scrolling or expand to display the text when it exceeds a single line.

  • Text box limit: This option allows you to specify the number of characters a field can contain. You may use this option when accepting information, such as a phone number or Social Security number, where the number of characters is limited to a fixed number. If you enable the Multi-line option listed previously, this option will be disabled.

  • Placeholder Text: You can use placeholder text to include suggestions in a textbox or field to represent the text a user might enter or provide instruction on how he or she should complete a field. For example, for a name field, you might have placeholder text that states "Enter Name Here." As soon as a user clicks the field, the text is erased.

Rich Text Box

You use the rich text box to collect more detailed information from a user, such as a description or background information. This field type or control has many of the same customization features as the textbox, including spell check, placeholder, conditional formatting, and wrapped text. When customizing this field type, you may choose to support basic rich text formatting or enhanced rich text. An example of the additional formatting options available within an enhanced rich text field is shown in Figure 12-12.

FIGURE 12-12

Figure 12-12. FIGURE 12-12

Selection Listboxes

Selection listbox field controls include drop-down listbox, combo box, listboxes, and multiple selection listboxes. Depending on the type of information you are collecting from your users and whether you intend to make the form available in the browser, your implementation choices may vary:

  • Drop-down listbox: This type of box allows users to select from fixed sets of values. If there are many items, you may select a drop-down listbox to save room because it only shows one item until the user clicks a down arrow. Having too many items can negatively affect the user experience, so consider applying a filter so that only a relevant set of items are displayed based on a user's selection in another field. For example, if the user enters the United States as his country, a field for State or Province selection could be filtered to only display states because there is no requirement to display provinces.

  • Standard listbox: This option allows users to select from a fixed set of values. The items are displayed in a listing box and are viewable all at once. This is different from the drop-down box for that reason and is typically only suitable when you have less than 10 or so values. Otherwise, the control will take up a large amount of space, and selecting from too large a set of values may be difficult for some readers.

  • Combo box: The combo box is very similar in presentation to the drop-down listbox; however, it also allows users to enter their own values in a list. Therefore, if the item they want to select is not listed in the drop-down, they can type in their own value.

  • Multiple selection listbox: The multiple listbox is similar to the standard listbox but contains checkboxes for each item and can also optionally allow users to enter their own values into the list. An example of a multiple selection listbox is shown in Figure 12-13.

  • Person or Group Picker: This selection field integrates with the membership listing of your SharePoint environment to allow for the selection of users or groups through this field. By using this field type, you can link a user's profile directly within a form rather than merely just entering a textbox with their name. This field is very similar to the person or group column type that was explored in Chapter 4.

  • External Item Picker: This selection field integrates with the Business Connectivity Services feature of SharePoint Server to allow for the selection of external business data within an InfoPath form. If an external application has been defined in SharePoint Server through the Business Connectivity Services feature, you may associate it with this field type. An example of the configuration options for defining the data source of this field type is shown in Figure 12-14. Business Connectivity Services is explored in Chapter 15 of this book.

Date Picker

This feature helps a user select a date, which is especially helpful when you have regional variations in date formats. For example, 05/06/07 can represent a completely different day in Canada than it would in the United States. An example of the Date Picker control as seen by an end user on the completed form is shown in Figure 12-15.

FIGURE 12-13

Figure 12-13. FIGURE 12-13

FIGURE 12-14

Figure 12-14. FIGURE 12-14

FIGURE 12-15

Figure 12-15. FIGURE 12-15

You can configure the Date Picker to contain certain default values including special functions, such as today (), which sets the default date to the current date of when the user is completing the form.

Checkbox

In many of the exercises in this book, you selected a checkbox to enable an option for an application. The same logic applies in a form template. You can have a single checkbox to provide a Yes or No type answer to a question. For example, if a checkbox were associated with a to-do list, a blank box would indicate that the task had not been completed, whereas a selected checkbox would be an indication that task was complete. Alternatively, you have checkboxes that allow a user to select one or more items from a group of choices, as shown in Figure 12-16. While each choice is an individual field, you can group the checkboxes in a section or table for data organization purposes.

Option Button

The Option button, sometimes referred to as a radio button, gives users a choice between items. Instead of allowing users to select more than one item, you give them a list of choices and only allow them to select one of them. In Figure 12-17, a user can only select a single size when ordering their pizza.

FIGURE 12-16

Figure 12-16. FIGURE 12-16

FIGURE 12-17

Figure 12-17. FIGURE 12-17

You select how many choices you want to give the user, and you assign each option button a unique ID that makes it easy for you to identify the user's selection.

Button

You can add a button to launch a new activity or series of rules on a form. When the user clicks the button, the activity or rule triggers. You can use buttons to launch a number of actions, including:

  • Change views in a form

  • Submit to a data connection

  • Retrieve information from a data connection

  • Launch a new form (InfoPath Form Filler Only)

  • Launch a message window or display box (InfoPath Form Filler Only)

  • Set the value for a field in the form

  • Close a form

By implementing rules in combination with special conditions, a simple form template can become a dynamic application and drive specific business processes in a way that is very intuitive and easy to use.

Picture Button

A Picture button has the same capabilities of the button control described previously but has the additional capability of allowing the form designer to select a custom image for the presentation of the button.

Sections

Sections give elements structure and are, therefore, important when you design a form's data source and display needs. You can add, remove, or hide sections within a form template. As shown in Figure 12-18, you can select an option to have a section initially excluded from the form or added by a user. You may choose to hide a section if you want to have portions of your form only appear based on a user's response to a question. For example, if you have a set of questions in your form related to what pizza toppings a user wants on their pizza, you might choose to hide those questions if in a previous answer the user selected that he wanted to order hamburgers.

It is generally a good idea to add sections to your form templates to group information that is similar or related. You should name sections appropriately so that you can better identify a set of related fields within the form's data source.

FIGURE 12-18

Figure 12-18. FIGURE 12-18

Other Controls

The previously listed field types are just a few of the standard controls available for use in an InfoPath form. Additional control types include:

  • Tables: You can include tables in your form for users to complete. Each table can contain a number of fields and may include repeating rows so that users can add more information or items to the table as required.

  • Master/Detail: In some cases, you may have two controls or sections whereby the selection in one will dictate the detail displayed in another. An example of this might be a product category list and a product details listing. If a user selects a category, the details listing should be reformatted to display only the items related to the selected category.

  • Lists: A list can be a more informal control that allows a user to add a bulleted or numbered list in his response. You may include a list in a form that asks a user to submit ideas for a new product or accomplishments for a particular time period.

  • File Attachment: It may be appropriate or beneficial to have a user attach a file to his form instance. This file becomes embedded in the form document and others can access it later when reviewing the form.

  • Picture: This control allows you to create a field that will either upload and embed a picture in the form, or link to a picture stored elsewhere.

  • Ink Picture: For users with a drawing tablet or Tablet PC, InfoPath has built-in support for Ink, which allows a user to write directly into a form with a digital pen. This field supports the drawing of an image directly within the form. This field is only supported for forms that will be completed using InfoPath Filler.

  • Hyperlink: This control allows you to insert a hyperlink into the form whereby you can specify the link to location and display text.

  • Calculated Value: For more advanced users, this control can be used to enter an XPath expression that can perform advanced calculations on data stored in the form. The results of the calculation are displayed in the form.

  • Vertical Label: For design purposes, you may want to have a vertical label added to your form. This control presents the form designer with a textbox within which text can be added. This text is displayed vertically on the form. This field is supported only for forms that will be completed using InfoPath Filler.

  • Regions or Groups: Similar to sections, regions and groups are organizational elements that can be added to pages to support fields or text.

Data Source

The primary data source of your InfoPath form is basically the skeletal information structure of your form. In order to have a field in the form, it must be tied to an element in the data source. When you create your form by adding controls, data source elements are automatically added in the primary data source for you. You can also have secondary data sources, such as external data connections that you can use to display information in the form. For example, you may have a secondary data source that is a database. You can drag information from your database onto the form and select which fields or controls should be used to display the information.

As described in the last section, the data source is very closely tied to the controls. You should name your fields as you add the controls. This will automatically update the data source. The name cannot contain spaces and should be intuitive. You can also add groups, tables, or sections in your form's data source so that you can easily track elements or items that related to one another.

The primary data source of a form can be imported based on an XML file, or generated from a data connection. The available options for creating a new form from a data connection are displayed in Figure 12-19. This approach is more advanced; a formalized data structure is imported into the form and then controls are added to the form to represent the data.

If you are not creating your data source from a data connection or XML schema file, you should take time to plan it out. Consider your information requirements, and sketch a form out on paper. By considering what some of the information requirements are in advance, you can generate a good idea on what your data elements should be before you even start creating the form template.

FIGURE 12-19

Figure 12-19. FIGURE 12-19

Note

When you remove a control from a form's view, you do not remove the field from your data source. Views are discussed in the next section.

In addition to the primary data source of a form template, additional data sources become available as new data connections are added to the form. An example of this can be seen in Figure 12-20.

Similar to the behavior of the primary data source, you can drag elements within a secondary data source onto the page. This can help provide some data reporting from external data sources within the form itself. You can add items either as sections or tables and then format them as required. For example, in a form template that tracks information about a customer, the primary data source of the form may contain items such as the customer's phone number, company name, and email address. And you might create a secondary data source that connects to the orders database. You can drag information from this secondary data source onto the form to show a salesperson all the products the customer has purchased.

FIGURE 12-20

Figure 12-20. FIGURE 12-20

Views

In Chapter 4, you saw how to create custom views for lists and libraries to display different records and columns from a single data source. With InfoPath, you can also create multiple views from a single form. The views can either act as reports or pages in a form where they can represent completely unique steps related to the completion of a process. For example, you can have a form template with four different views: one for customer requests; a second that logs troubleshooting issues that an employee must resolve; a third that tracks correspondence with customer; and a final one that tracks customer's comments on the level of service they've received.

Views can be created from the Page Design tab of the Ribbon menu by selecting New View. When a view is created, it is blank. The Form Designer must drag layout elements such as tables onto the form and add controls as needed. A single field can be added to multiple views. For example, you may have a field for customer name. You can add this field to every view in your form. You can also change unique characteristics related to the presentation of the field on each view. While the data remains the same, the presentation of a field on each view can be slightly different. For example, on one page the customer's name may appear in large bold letters in Read-Only format, and on another it may appear in a drop-down box. However, the data of the field remains the same. Therefore, if "Graphical Wonder" is listed as the customer in one view, it will also be listed on all other views in that field.

You can use buttons on views to toggle between each of the available views. In some cases, multiple views and buttons can be implemented on a form to collect information from a user in steps. You essentially add a button to a view that, when selected, will launch another view using the Rules capabilities of buttons. This replicates the experience of a wizard and can help simplify the experience of the user as she completes the operation. If you don't use custom buttons, you can have users switch between various form views within the InfoPath Filler application using the Current View menu, as shown in Figure 12-21.

FIGURE 12-21

Figure 12-21. FIGURE 12-21

A similar view selector may be enabled on the toolbar of browser-based forms as shown in Figure 12-22. This is an optional setting that can be configured in the Advanced Form options that is available from the File menu.

FIGURE 12-22

Figure 12-22. FIGURE 12-22

Design Checker

As previously stated, not all form controls are supported for use within browser-based forms. Therefore, you need to consider who the audience for your form will be and how they will access the form. If the form has to be available for use on the browser, careful consideration is required to ensure that the experience is positive. This may seem like a lot to understand if you are just getting used to creating these forms. Therefore, a Design Checker exists with the InfoPath application to guide you by highlighting anything you may have in your form that would not be compatible with the browser or previous versions of InfoPath.

If you decide that a form should be browser-compatible after you have already begun the form design process, you can change the setting by selecting the Web Browser Form within the Compatibility settings under Advanced Form Options, as shown in Figure 12-23.

FIGURE 12-23

Figure 12-23. FIGURE 12-23

Another option in this same interface is a URL to test whether the form will be compatible with the destination SharePoint server. If you specify a URL, the Design Checker displays alerts and messages indicating items in your form that may affect compatibility with either the browser or older versions of the application.

Publish Form Template

You can always save a template in a location for your personal use and to edit further, but to make your form available to others, you need to publish the template to a central location. You can publish an InfoPath form template to any of the following locations:

  • A SharePoint Server with Enterprise Features (supports browser-based forms or the use of InfoPath Filler)

  • A SharePoint Server with Standard Features (requires InfoPath Filler)

  • A SharePoint Foundation Server (requires InfoPath Filler)

  • A shared network location such as a file share (requires InfoPath Filler)

  • An email message to recipients (requires InfoPath Filler)

Depending on the environment in which you are working and what tools you have available, you may select any one of these options when completing the Publishing Wizard.

Note

The next section, "Working with Form Templates," walks you through examples of publishing an InfoPath form to a SharePoint server, including directly publishing a form to a document library, creating an InfoPath Form content type, and uploading an administrator-approved form template.

If you publish your form template to any of these locations, you must save a local copy of the template on your computer. If later you want to make updates to the form template, you can make them to your local copy and complete the Publishing Wizard to update your form template in its shared location. However, you should be confident that no edits were performed directly on the template in its shared location. If there are edits, then you may overwrite them by publishing an older version of the form. It is a good idea to identify and define development policies and procedures related to your organization's custom InfoPath forms to ensure that such situations do not occur. Once the initial publishing process has completed, future updates can be delivered to the server using the Quick Publish feature. This republishes the form using the same settings as previously defined in the last publishing process.

WORKING WITH FORM TEMPLATES

Now that you know the design-related functions of an InfoPath form template, you can start creating some actual form templates that can help you collect and view information. This section discusses creating a new form template and then addresses some options for publishing and customizing the form to further meet the business requirements.

Designing a New Form

Before you can begin creating a new form, you need to figure out the form's requirements. This might involve gathering information from the group or sponsors who are requesting the form. However you gather the information, you should know the following:

  • What types of information should the form collect?

  • How should you present the information, and what special rules are there for submitting the information? For example, you should create Name and Email fields because they are required to contact employees after they submit feedback.

  • How should you format the Data fields? For example, you may apply special formatting or filtering that disables a field based on a user's input in another field. This is helpful to ensure that users only have to deal with the fields they are required to complete.

  • Is there additional data that is stored in an external system that should be available within your form?

Once you have the information that you need, it's time to do the actual work of creating the form template.

Although there are many steps in the next Try It Out, they represent a small portion of the steps required to create the most basic of electronic forms. In the second Try It Out of this section, you look at the functionality of InfoPath related to creating reusable template components called template parts.

Publishing a Form Template to a Library

In the previous example, you created a very simple form for users to fill out to provide feedback to a communications group within an organization. Once a form template is created, it must be published to a location where users can fill it out. As previously mentioned in the introduction of this chapter, SharePoint includes support for browser-based forms, an Enterprise server feature that allows for users to complete InfoPath Forms via the browser so they do not require the InfoPath application. In order for a site to support this functionality, this Enterprise feature must be activated on the site collection and the site to which the form is being published.

In the next Try It Out, you create a new SharePoint site named "Communications" which uses the Blank site template. Creating a new site is not a requirement for publishing a new form template; however, because you will be adding very specific lists for use by this form, you will create a brand-new site from which to work. Once the site is created, you explore the process for publishing a form template to a document library. Finally, in the last Try It Out of this section, you learn how to configure a document library to ensure that all users have the same editing experience, and specify that the form be opened as a web page in a browser regardless of whether the user has the InfoPath application installed on their computer.

CUSTOMIZING A FORM TEMPLATE

Once a template has been created and published to a library, it can still be edited and enhanced to further address business needs. As a form designer, you should consult with business users to identify ways in which the form can evolve to better suit their needs. This may include improving how data is submitted or saved to a library as well as how the form is presented to users.

In this section, you are going to review some of the enhancements and changes you can make to a form template that might make it a more effective tool for a team. In the first Try It Out, you look at how you can add a button to a form as well as a submit a data connection that will save the form to a destination library without requiring a user to select Save As from the File menu. These approaches helps ensure that a proper naming scheme is followed for saved forms because the name can be derived from form data upon submission. As well, it makes the user experience better for those completing the form because they do not have to bother with understanding the details of where and how they should save the form. Once you add a Submit button, there may no longer be a need to expose the Save buttons on the form's toolbar to users. Therefore, in the next Try It Out of this section, you learn how the form's toolbar can be customized to suit your needs. You then look at how a data connection can be added to a form template to retrieve information from another content source.

ADVANCED FORM-PUBLISHING OPTIONS

In the section "Publishing a Form Template to a Library," you learned how a form template is published to a single document library. This approach is suitable for scenarios where a form is only required in a single location and where multiple groups or sites do not reuse the form. However, you may need to make a form template available to multiple sites in a site collection or multiple site collections. In each of these cases, you can choose one of the advanced form publishing options.

For scenarios where you want to publish a form template to multiple sites or libraries in the same site collection, the optimal publishing choice is to publish as a Content Type. In Chapter 6, you learned how content types can be associated with multiple libraries and locations in a single site collection. In the first Try It Out of this section, you publish your employee feedback form template as a content type so that it can be added to multiple libraries. Because the data connection is added to submit your form to a central location, you do not have to worry about users saving the form data in multiple locations.

In some situations, you may have a single form template that you want to make available in multiple site collections. In this case, you would choose to upload your template as an Administrator-Approved form template via the Central Administration site. From there, form templates can be activated to site collections from one central location. This method is also the only supported choice for advanced form templates containing custom code or highly complex data connections. In the second Try It Out of this section, you walk through the process of uploading a form template to the Central Administration site and activating it out to a site collection.

SUMMARY

This chapter discussed how a Microsoft Office application for creating electronic forms can be used and integrated with SharePoint, using InfoPath Forms Services.

You looked at how InfoPath has evolved since its last release, including support for browser editing and viewing of form data, as well as enhanced support for external data connections and controls.

You learned about the various design-level tasks and elements associated with an InfoPath form, including its layout, controls, data source, design check, and publishing functions. You saw some of the standard controls you can add to a form, as well as what some of the publishing possibilities are for a form template.

This chapter offered several step-by-step examples showing how to create form templates and use them within SharePoint. After reading this chapter, you should feel comfortable planning, designing, and developing InfoPath form templates that can map directly to specific business activities within your organization and improve the efficiency and effectiveness of collecting information from users.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.242.235