Adding Search Box in Canvas App

To add a search field in a Canvas App in Microsoft Power Apps, we can follow these steps:

  1. Open the Canvas App in Power Apps Studio.
  2. From the left-hand pane, select the screen where you want to add the search field.
  3. Click on the “Insert” tab from the top menu and select “Text input” from the “Controls” section.
  4. Rename the text input control to “SearchBox” or something similar.
  5. Resize the text input control as per requirements.
  6. Click on the “View” tab from the top menu and select “Data sources” from the “Data” section.
  7. Click on the “Add data source” button and select the data source we want to search from.
  8. Select the data table or collection where we want to search from.
  9. Go back to the screen and select the “SearchBox” control.
  10. In the “Properties” pane on the right-hand side, scroll down to the “Advanced” section and expand the “OnChange” property.
  11. Add the following formula to the “OnChange” property:
  12. Filter(<Data source name>, <Column name> in SearchBox.Text)
  13. Replace <Data source name> with the name of the data source we added in step 7 and <Column name> with the name of the column you want to search from.
  14. Save the app and test the search functionality.

This will create a search field in your Canvas App that allows you to search for data in the specified data source based on the input entered in the search box.


Posted

in

by

Tags: