Skip to content

Commit 21a4454

Browse files
authored
Merge pull request #884 from MicrosoftDocs/anneta-lists
update procedures for list controls
2 parents 5486894 + ef39768 commit 21a4454

File tree

2 files changed

+28
-38
lines changed

2 files changed

+28
-38
lines changed
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
## Prerequisites
2-
* [Sign up](../maker/signup-for-powerapps.md) for PowerApps, and then [sign in](https://web.powerapps.com/?utm_source=padocs&utm_medium=linkinadoc&utm_campaign=referralsfromdoc) using the same credentials that you used to sign up.
3-
* Create an app from a [template](../maker/canvas-apps/get-started-test-drive.md), from [data](../maker/canvas-apps/get-started-create-from-data.md), or from [scratch](../maker/canvas-apps/get-started-create-from-blank.md).
4-
* Learn how to [add and configure controls](../maker/canvas-apps/add-configure-controls.md).
2+
3+
1. [Sign up](../maker/signup-for-powerapps.md) for PowerApps.
4+
1. [Sign in](https://web.powerapps.com/?utm_source=padocs&utm_medium=linkinadoc&utm_campaign=referralsfromdoc) using the same credentials that you used to sign up.
5+
1. Under **Make your own app**, hover over the **Canvas app from blank** tile, select the phone icon, and then select **Make this app**.
6+
1. Learn how to [add and configure controls](../maker/canvas-apps/add-configure-controls.md).

powerapps-docs/maker/canvas-apps/add-list-box-drop-down-list-radio-button.md

Lines changed: 23 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,46 @@
11
---
2-
title: Add a list box, a drop-down list, and radio buttons to a canvas app | Microsoft Docs
2+
title: Add a list box, a drop-down list, or radio buttons to a canvas app | Microsoft Docs
33
description: In PowerApps, create or configure multiselect options in a canvas app
4-
author: lonu
4+
author: fikaradz
55
manager: kvivek
66
ms.service: powerapps
77
ms.topic: conceptual
88
ms.custom: canvas
99
ms.reviewer: anneta
10-
ms.date: 10/23/2016
11-
ms.author: lonu
10+
ms.date: 10/24/2018
11+
ms.author: fikaradz
1212
search.audienceType:
1313
- maker
1414
search.app:
1515
- PowerApps
1616
---
17-
# Add a list box, a drop-down list, or radio buttons to a canvas app in PowerApps
17+
# Add a list box, a drop-down list, or radio buttons to a canvas app
1818

19-
PowerApps includes multi-select and single-select options for canvas apps, including a list box, a drop-down list, and radio buttons. In this topic, we add these controls and use a **Table** formula to build the lists. When an item is selected in the list, it updates other controls.
19+
Show a single column of data (for example, from a multi-column table) in a canvas app so that users can select one or more items in a list.
2020

21-
[!INCLUDE [app-customization-requirements](../../includes/app-customization-requirements.md)]
22-
23-
## Add a list box
21+
- Add a list box to allow users to select more than one option.
22+
- Add a drop-down list to take up less space on a screen.
23+
- Add a set of radio buttons for a particular design effect.
2424

25-
1. On the **Insert** tab, select **Controls**, and then select **List box**:
25+
This topic focuses on lists boxes and radio buttons, but the same principles apply to drop-down lists.
2626

27-
![][2]
27+
[!INCLUDE [app-customization-requirements](../../includes/app-customization-requirements.md)]
2828

29-
2. Rename the **List box** control to **MyListBox**:
29+
## Create a simple list
3030

31-
![][3]
31+
1. Add a **List box** control named **MyListBox**, and set its **Items** property to this expression:
3232

33-
3. Set its **[Items](controls/properties-core.md)** property to the following expression:
34-
```["circle","triangle","rectangle"]``` <br/>
33+
```["circle","triangle","rectangle"]``` <br/>
3534

3635
Your designer looks similar to the following:
3736

3837
![][4]
3938

40-
4. On the **Insert** tab, select **Icons**, select the circle, and move it under the **List box** control:
39+
4. On the **Insert** tab, select **Icons**, select the circle, and move it under **MyListBox**:
4140

4241
![][5]
4342

44-
5. Add a triangle and a rectangle, and then arrange the shapes in a row under the **List box** control:
43+
5. Add a triangle and a rectangle, and then arrange the shapes in a row under **MyListBox**:
4544

4645
![][6]
4746

@@ -53,12 +52,14 @@ PowerApps includes multi-select and single-select options for canvas apps, inclu
5352
| triangle |```If("triangle" in MyListBox.SelectedItems.Value, true)``` |
5453
| rectangle |```If("rectangle" in MyListBox.SelectedItems.Value, true)``` |
5554

56-
7. Preview what you've created ![][1]. Select the different shapes in the **List box** control. Only the shape or shapes that you select appear. Press Esc or select the **X** to go back to your screen.
55+
7. While holding down the Alt key, select one or more shapes in **MyListBox**.
5756

58-
In these steps, you used an expression to create a list of items in a **List box** control. Depending on what you choose in the **List box** control, different shapes are displayed. You can apply this to other elements within your business. For example, you can use a **List box** control to display product images, product descriptions, and so on.
57+
Only the shape or shapes that you select appear.
58+
59+
In these steps, you used an expression to create a list of items. You can apply this to other elements within your business. For example, you can use a **Drop down** control to display product images, product descriptions, and so on.
5960

6061
## Add radio buttons
61-
1. On the **Home** tab, select **New Screen**.
62+
1. On the **Home** tab, select **New Screen**, and then select **Blank**.
6263

6364
2. On the **Insert** tab, select **Controls**, and then select **Radio**.
6465

@@ -74,28 +75,15 @@ In these steps, you used an expression to create a list of items in a **List box
7475
4. On the **Insert** tab, select **Icons**, and then select the circle.
7576

7677
5. Set the **[Fill](controls/properties-color-border.md)** property of the circle to the following function:
77-
```If(Choices.Selected.Value = "red", RGBA(192, 0, 0, 1), Choices.Selected.Value = "green", RGBA(0, 176, 80, 1), Choices.Selected.Value = "blue", RGBA(0, 32, 96, 1))```
78+
```If(Choices.Selected.Value = "red", Red, Choices.Selected.Value = "green", Green, Choices.Selected.Value = "blue", Blue)```
7879

7980
In this formula, the circle changes its color depending on which radio button you choose.
8081

8182
6. Move the circle under the **Radio** control, as in this example:
8283

8384
![][14]
8485

85-
7. Preview what you've created: ![][1]. Select a different radio button to change the color of the circle. Press Esc or select the **X** to go back to your screen.
86-
87-
## Add a drop-down list
88-
1. Add a screen, and then add a **Drop down** control.
89-
90-
![][15]
91-
92-
2. Rename the control to **DDChoices**, and set its **[Items](controls/properties-core.md)** property to this formula:<br>
93-
**["red","green","blue"]**
94-
95-
3. Add a circle, move it below the **Drop down** control, and set the circle's **[Fill](controls/properties-color-border.md)** property to this formula:
96-
```If(DDChoices.Selected.Value = "red", RGBA(192, 0, 0, 1), DDChoices.Selected.Value = "green", RGBA(0, 176, 80, 1), DDChoices.Selected.Value = "blue", RGBA(0, 32, 96, 1))```
97-
98-
4. Preview what you've created: ![][1]. Select the different options to change the color of the circle.
86+
7. While holding down the Alt key, select a different radio button to change the color of the circle.
9987

10088
[1]: ./media/add-list-box-drop-down-list-radio-button/preview.png
10189
[2]: ./media/add-list-box-drop-down-list-radio-button/listbox.png

0 commit comments

Comments
 (0)