You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: powerapps-docs/maker/canvas-apps/functions/function-choices.md
+22-20Lines changed: 22 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -49,49 +49,51 @@ At this time, you can use lookup columns only with SharePoint and Common Data Se
49
49
50
50
**Note**: Entity names are singular on web.powerapps.com and plural in PowerApps Studio.
51
51
52
-

52
+

53
53
54
-
The **Accounts** entity has a **Primary Contact** column, which is a lookup to the **Contacts** entity.
54
+
The **Accounts** entity has a **Primary Contact** column, which is a lookup to the **Contacts** entity.
55
55
56
-

56
+

57
57
58
-
For each account, a contact is designated as the primary contact, or the primary contact is *blank*.
58
+
For each account, a contact is designated as the primary contact, or the primary contact is *blank*.
59
59
60
-
2.[Generate an app](../data-platform-create-app.md) from the **Accounts** entity.
60
+
1.[Generate an app](../data-platform-create-app.md) from the **Accounts** entity.
61
61
62
-
3. In the list of screens and controls near the left edge, scroll down until **EditScreen1** appears, and then select **EditForm1** just under it.
62
+
1. In the list of screens and controls near the left edge, scroll down until **EditScreen1** appears, and then select **EditForm1** just under it.
63
63
64
-

64
+

65
65
66
-
4. On the **Properties** tab of the right pane, select **Accounts**.
66
+
1. On the **Properties** tab of the right pane, select **Edit fields**.
67
67
68
-

68
+

69
69
70
-
5. In the **Data** pane, scroll down to the list of fields.
70
+
1. In the **Fields** pane, select **Add field**.
71
71
72
-

72
+
1. Search for the **Primary Contact**field, select its check box, and then select **Add**.
73
73
74
-
6. Find the **Primary Contact** check box, and then select it if it's cleared.
74
+

75
75
76
-
7. (optional) Drag the **Primary Contact** field from the bottom to the top of the list of fields.
76
+
The **Primary Contact** field appears at the bottom of the form. If the field shows an error, select **Data sources** on the **View** tab, select the ellipsis (...) for the **Accounts** data source, and then select **Refresh**.
77
77
78
-
8. In the card for **Primary Contact**, select the **Combo box** control.
78
+
1. (optional) Drag the **Primary Contact** field from the bottom to the top of the list of fields.
79
+
80
+
1. In the card for **Primary Contact**, select the **Combo box** control.
79
81
80
82
The **Items** property of that control is set to a formula that identifies the column by either its display name, as in the first example, or its logical name, as in the second example:
81
83
82
84
-**Choices( Accounts.'Primary Contact' )**
83
85
-**Choices( Accounts.primarycontactid )**
84
86
85
-

87
+

86
88
87
-
9. On the **Home** tab, select **New screen**, and then select **Blank**.
89
+
1. On the **Home** tab, select **New screen**, and then select **Blank**.
88
90
89
-
10. On the **Insert** tab, select **Data table**.
91
+
1. On the **Insert** tab, select **Data table**.
90
92
91
-
11. Set the **Items** property of the **Data table** control to this formula:
93
+
1. Set the **Items** property of the **Data table** control to this formula:
92
94
93
95
**Choices( Accounts.'Primary Contact' )**
94
96
95
-
12. Open the **Data**pane, and then select the check boxes for**firstname**, **lastname**, or any other field that you want to show.
97
+
1. In the middle of the **Data table**control, select the link that starts**Choose the fields...**, and then select the check boxes for the field or fields that you want to show (for example, **firstname** and **lastname**).
96
98
97
-

99
+

0 commit comments