Book Image

SharePoint 2013 WCM Advanced Cookbook

By : JOHN CHAPMAN
Book Image

SharePoint 2013 WCM Advanced Cookbook

By: JOHN CHAPMAN

Overview of this book

Table of Contents (19 chapters)
SharePoint 2013 WCM Advanced Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a survey InfoPath form that gets locked after submission and populates the SharePoint fields


In this recipe, we will create a simple survey form template that switches to a read-only view of the form data when it is opened again.

How to do it...

Follow these steps to create a survey form template:

  1. Create a new SharePoint Form Library form template in InfoPath Designer.

  2. Add a few labels and controls for the survey input.

  3. Select the whole table, including the labels and fields.

  4. Copy the selection to the clipboard.

  5. Add a new view to the form template named Submitted.

  6. Paste the selection to the new view.

  7. For each control in the Submitted view, set the field to be Read-Only in the Display tab of the Control Properties tab.

  8. For each control in the Submitted view that are not Text Box controls, select Change Control by navigating to CONTROL TOOLS | PROPERTIES and select Text Box.

  9. Return to the first view in the form template and add a Button control with Submit as the label.

  10. Publish the form to a...