Before reading this article, please go through the important article links given below.
Quick Start on Microsoft PowerApps.
In PowerApps, we can Add the ListBox Control.
ListBox Control
The ListBox is used to display a list of items to a user. A user can select an item from the list. It allows the programmer to add the items at design time by using Item Methods.
Follow the below steps to work with ListBox Control in PowerApps.
Step 1. Log into the PowerApps
After downloading the PowerApps from the Windows store, here we need a Microsoft-related organization’s Office 365 ID (MSDN, Microsoft, Skype, Office 365, etc.,), to log in with it.
![PowerApps]()
Step 2. Create a New App in PowerApp.
After Login, we can see the Dashboard. There we click on the New button.
![Dashboard]()
Step 3. Choose the Blank App.
![Blank App]()
Step 4. Designing the App
Now, let's start to design the App. On the left side, we can see the Individual Screens for adding our data. On the right side, we can see the List of Layouts. In the Top, we can see the formula bar. There you see the Properties of the screen that you select. On the Right Side, we see the Add Data Source to add the external data Source.
![Designing the App]()
Step 5. Drag and Drop the ListBox Control.
- Go to the Insert menu, then Controls, and Drag the ListBox tool.
![ListBox Control]()
- Drop the ListBox tool on the Screen.
![ListBox tool]()
- Rename the MyListBox
![MyListBox]()
- Add the Options
![Add the Options]()
Step 6. Drag and Drop the Shape Control Tool.
If you select the List, the selected list appears on the Shape control.
- Go to the Insert Menu then choose Icons and Drag the Circle Shape.
![Control Tool]()
- Drag the Shape control to the screen.
![Shape control]()
- Likewise, draw the remaining Shapes
![Draw]()
- Add Coding
- Select the Shape Control and Add the coding to the Visible Event.
- Select the Circle Shape and Add the coding.
- Coding
If("circle" in MyListBox.SelectedItems.Value, true)
![Coding]()
- Select the Triangle Shape and Add the coding.
- Coding
If("triangle" in MyListBox.SelectedItems.Value, true)
![Triangle Shape]()
- Select the Rectangle Shape and Add the coding.
- Coding
If("rectangle" in MyListBox.SelectedItems.Value, true)
![Rectangle Shape]()
Step 7. Run the App
![Run the App]()
Output 1. Main Screen
![Main Screen]()
Output 2. Click on the Circle List.
![Circle List]()
Output 3. Click on the Triangle List.
![List]()
Output 4. Click on the Rectangle List
![Microsoft]()
Output 5. Reclick on the Triangle List to remove the Shape.
![Remove the Shape]()
Conclusion
I hope you understand How to Add the ListBox Control in Microsoft PowerApps and how to run it.