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

Adding a drop-down menu to InfoPath using SharePoint list data


In this recipe, we will add a drop-down menu that uses data provided by the custom list we created previously in the Creating a SharePoint list to provide drop-down menu data to InfoPath recipe.

Getting ready

For this recipe, we should have a SharePoint list created to retrieve data from.

How to do it...

Follow these steps to create a drop-down menu that uses SharePoint list data:

  1. Create a new form template or open an existing one in Microsoft InfoPath Designer 2013.

  2. Select From SharePoint List from the DATA tab present in the ribbon as shown in the following screenshot:

  3. Provide the URL to the SharePoint site that contains the list and click on Next.

  4. Select the list and click on Next.

  5. Select the field you want to display in the drop-down menu. In the case of our Categories list, select Title as shown in the following screenshot:

  6. In the Sort By field, select Title to sort the fields according to their title.

  7. Click on Next, then again on...