Pre-populate PowerApps controls using URL

The ability to pre-populate controls is a win-win situation for both the makers and the users. The maker could potentially use a single app with similar fields for multiple reasons and the user has fewer fields to fill. This blog will walk you through how to build such an app using the Param function in a PowerApps Canvas app.  

This blog walks you through how you can pre-populate the following controls: 

  • Text input 
  • Dropdown 
  • Combo box 
  • Date picker 
  • Radio &
  • Toggle 

Scenario: 

Consider a form used by employees who are being relocated. Depending on the user’s department, division, and locations, the URL is modified to have these fields pre-populated and then the link is sent to the end-user. 

Steps: 

In this demo the app is built-in Portrait design, however, you can build the same using Landscape. In addition, this video primarily focuses on how to use PARAM and the URL, hence no steps are provided in saving the data. For saving you can use the Patch Function. 

In order to improve the performance, we are doing two things, first assign a PARAM function to the SET function and second, add all the SET functions to the App’s OnStart. Below is a screenshot of what it looks like.

Image 1 - Pre-populate PowerApps

We then add the variables created by the SET function to each of the controls we are testing. For the Text input, Drop down, Radio and Toggle controls we can assign the variables in their defaults. The Combo Box and the Date picker are the only two controls we were do not use the variables but instead use Label as an intermediate step. The reason why this is done is best described in the video. 

Video: 

The following video walks you through a step-by-step process on how to build the app. 

Helpful Links: 

Make sure you check out my previous blog post and video on how to “Build your own Audit app”.

***

Want to learn more about the essentials of a Modern Site Architecture, Creating Engaging Content or Intranet Home Page Design? Great!

CHECK OUR EBOOKS

Schedule your free demo!

Want to make your life much easier and work more effective? Yes! We’re more than happy to schedule a demo with you! Just contact us and we’ll get back to you.

We keep your information safe. Read more from our Privacy Policy.

Subscribe to our Newsletter

Get our news delivered right into your inbox. We won’t spam, promise!

We keep your information safe. Read more from our Privacy Policy.