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.
    How to do it...
  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 ...

Get SharePoint 2013 WCM Advanced Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.