시작하기 위해 회사 또는 학교 계정을 입력하세요.
PowerApps includes multi-select and single-select options, 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.
On the Insert tab, select Controls, and then select List box:
Rename the List box control to MyListBox:
Set its Items property to the following expression:
Your designer looks similar to the following:
On the Insert tab, select Icons, select the circle, and move it under the List box control:
Add a triangle and a rectangle, and then arrange the shapes in a row under the List box control:
Set the Visible property of the following shapes to the following functions:
|Shape||Set Visible function to|
Preview what you've created . 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.
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.
On the Home tab, select New Screen.
On the Insert tab, select Controls, and then select Radio.
Rename the Radio control to Choices, and set its Items property to this formula:
If needed, resize the control to show all the options.
On the Insert tab, select Icons, and then select the circle.
Set the Fill property of the circle to the following function:
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))
In this formula, the circle changes its color depending on which radio button you choose.
Move the circle under the Radio control, as in this example:
Preview what you've created: . Select a different radio button to change the color of the circle. Press Esc or select the X to go back to your screen.
Add a screen, and then add a Drop down control.
Rename the control to DDChoices, and set its Items property to this formula:
Add a circle, move it below the Drop down control, and set the circle's Fill property to this formula:
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))
Preview what you've created: . Select the different options to change the color of the circle.