Info path auto-fill from list box

45
Your complete office in the cloud InfoPath - SharePoint Online Business forms Christopher Bird Office 365 Developer Cloud Hound

Transcript of Info path auto-fill from list box

Page 1: Info path auto-fill from list box

Your complete office in the cloud.

InfoPath - SharePointOnline Business forms

Christopher BirdOffice 365 DeveloperCloud Hound

Page 2: Info path auto-fill from list box

Creating a data connection to a SharePoint list

InfoPath drop down list box user selects from list linked to SharePoint list

Page 3: Info path auto-fill from list box

3

InfoPath - Configuring data connection to SharePoint

Creating a data connection to a SharePoint list

Page 4: Info path auto-fill from list box

4

1. Click the dropdown then open its Properties Dialog.

Creating a data connection to a SharePoint list

Page 5: Info path auto-fill from list box

5

2. Click to select Drop-Down List Box Properties

Creating a data connection to a SharePoint list

Page 6: Info path auto-fill from list box

6

3. Click Add

Creating a data connection to a SharePoint list

Page 7: Info path auto-fill from list box

7

4. Accept default, click Next.

Note: Form has no historical data connections

Creating a data connection to a SharePoint list

Page 8: Info path auto-fill from list box

8

5. Select SharePoint Library or list & click Next.

Creating a data connection to a SharePoint list

Page 9: Info path auto-fill from list box

9

6. Copy & paste SharePoint URL & click Next.

Creating a data connection to a SharePoint list

Page 10: Info path auto-fill from list box

10

7. Select SharePoint List & click Next.

Creating a data connection to a SharePoint list

Page 11: Info path auto-fill from list box

11

8. Select field to sort field order.

Creating a data connection to a SharePoint list

Page 12: Info path auto-fill from list box

12

9. Choose ascending or descending & click Next.

Creating a data connection to a SharePoint list

Page 13: Info path auto-fill from list box

13

10. Tick box if you want offline access. Note: Data security & device storage space may be an issue for you.

Click Next.

Creating a data connection to a SharePoint list

Page 14: Info path auto-fill from list box

14

11. Name data connection. Note: Automatically retrieve data box - is ticked.

OK if data base is small for example 10 entries but downloading 350 entries might make the form unusable in some circumstances.

Click Finish

Creating a data connection to a SharePoint list

Page 15: Info path auto-fill from list box

15

12. Click OK & return to form. Note: Option button get choices from external data source, Data source & Entries & Value & Display name are populated. Previously, slide 5 blank.

Test your form data connection link by clicking form preview button. If form drop list displays data you expect you can proceed to link multiple text box controls to user drop down list choice, if you should wish too.

Creating a data connection to a SharePoint list

Page 16: Info path auto-fill from list box

Auto-Fill from List BoxInfoPath form a drop-down list box, user selects choice.

User choice populates a single or multiple InfoPath text box(s).

Page 17: Info path auto-fill from list box

17

13. Click the Rules button

15. Click Add to add a rule

Auto-Fill from List Box

Page 18: Info path auto-fill from list box

18

14. Click This Field Changes

17. For the Action, select Set a field’s Value

Auto-Fill from List Box

Page 19: Info path auto-fill from list box

19

15. Click the Field button.

Auto-Fill from List Box

Page 20: Info path auto-fill from list box

20

16. For the Field, select the RestaurantWebsite node or whatever node you want to set automatically

Note: Fields drop down list ‘Main’ is selected.

Auto-Fill from List Box

Page 21: Info path auto-fill from list box

21

17. Field selected

Auto-Fill from List Box

Page 22: Info path auto-fill from list box

22

18. For the Value, click the Fx button

Auto-Fill from List Box

Page 23: Info path auto-fill from list box

23

19. In the Formula dialog, click Insert Field or Group

Auto-Fill from List Box

Page 24: Info path auto-fill from list box

24

20. In the Data Source dialog, select the secondary data source.

Auto-Fill from List Box

Page 25: Info path auto-fill from list box

25

21. Secondary data source selected data field you want to copy over to InfoPath & click Filter Data button.

Auto-Fill from List Box

Page 26: Info path auto-fill from list box

26

22. In Filter Data window, click Add button.

Auto-Fill from List Box

Page 27: Info path auto-fill from list box

27

23. In the Filter dialog drop down list, set the filter to “select a field or group.”

Auto-Fill from List Box

Page 28: Info path auto-fill from list box

28

24. In the Select a Field or Group window, Data source drop down list choose secondary data source (SharePoint list) & select RestaurantName.

Note: RestaurantName is the drop down list control used in InfoPath.

Auto-Fill from List Box

Page 29: Info path auto-fill from list box

29

25. Leave middle drop down list ‘is equal to’’

Auto-Fill from List Box

Page 30: Info path auto-fill from list box

30

26. Select a field or group.

Auto-Fill from List Box

Page 31: Info path auto-fill from list box

31

27. Select Main data source & choose RestaurantName & then click OK to close select the field or group window.

Auto-Fill from List Box

Page 32: Info path auto-fill from list box

32

28. Click OK to close specify filter conditions.

Auto-Fill from List Box

Page 33: Info path auto-fill from list box

33

29. Click OK to close filter data window.

Auto-Fill from List Box

Page 34: Info path auto-fill from list box

34

30. Click OK to close select a field of group.

Auto-Fill from List Box

Page 35: Info path auto-fill from list box

35

31. Click verify formula.

Auto-Fill from List Box

Page 36: Info path auto-fill from list box

36

32. No errors, click OK to close Microsoft InfoPath window.

Auto-Fill from List Box

Page 37: Info path auto-fill from list box

37

33. Click OK to close Insert formula window.

Auto-Fill from List Box

Page 38: Info path auto-fill from list box

38

34. Click OK to close rule details window.

Auto-Fill from List Box

Page 39: Info path auto-fill from list box

39

35. Click Preview form button.Auto-Fill from List Box

Page 40: Info path auto-fill from list box

40

36. Security Notice click OK.Note: You see this message because the form links to an external database.

Auto-Fill from List Box

Page 41: Info path auto-fill from list box

41

37. Select a restaurant name from drop down list.

Auto-Fill from List Box

Page 42: Info path auto-fill from list box

42

38. Choose restaurant name.

Auto-Fill from List Box

Page 43: Info path auto-fill from list box

43

39. Success – restaurant website field now shows website address based on restaurant name selected.

Note: You can link multiple text boxes to single drop down list choice.

Auto-Fill from List Box

Page 44: Info path auto-fill from list box

Resources • Gini Courter Lynda.com • InfoPath 2013 Essential Training

• Wong A Tong • InfoPath Tutorials and Solutions. http://www.bizsupportonline.net/

• Microsoft blog, Technet • http://blogs.msdn.com/b/infopath/

Page 45: Info path auto-fill from list box

Want to learn more

Christopher BirdOffice 365 Developer

t: 020 3011 5863

e: [email protected]

web: www.cloudhound.co.uk