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.
Step 2. Create a New App in PowerApp.
After Login, we can see the Dashboard. There we click on the New button.
Step 3. Choose the 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.
Step 5. Drag and Drop the ListBox Control.
- Go to the Insert menu, then Controls, and Drag the ListBox tool.
- Drop the ListBox tool on the Screen.
- Rename the MyListBox
- 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.
- Drag the Shape control to the screen.
- Likewise, draw the remaining Shapes
- 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)
- Select the Triangle Shape and Add the coding.
- Coding
If("triangle" in MyListBox.SelectedItems.Value, true)
- Select the Rectangle Shape and Add the coding.
- Coding
If("rectangle" in MyListBox.SelectedItems.Value, true)
Step 7. Run the App
Output 1. Main Screen
Output 2. Click on the Circle List.
Output 3. Click on the Triangle List.
Output 4. Click on the Rectangle List
Output 5. Reclick on the Triangle List to remove the Shape.
Conclusion
I hope you understand How to Add the ListBox Control in Microsoft PowerApps and how to run it.