Wicked Smart Data
LearnInsightsAboutContact
Sign InLet's Build
LearnInsightsAboutContact
Sign InLet's Build
Wicked Smart Data

Intelligence, automation, and expert execution — plus an elite library of free knowledge. We turn complexity into competitive advantage.

Start a conversation

Platform

  • Learning Paths
  • Insights
  • RSS Feed

Company

  • About
  • Contact
  • Work With Us

Legal

  • Privacy Policy
  • Terms of Service

© 2026 Wicked Smart Data. All rights reserved.

Intelligence · Automation · Advantage

All Insights
Power Apps

Canvas App Button Controls: Wiring Up OnSelect Actions, Navigation, and Visual Feedback for Beginner App Builders

Buttons are the nervous system of every canvas app — but most beginners wire them up wrong. This lesson teaches you exactly how OnSelect works, how to chain actions, navigate between screens, and give users real visual feedback, all through a realistic business app scenario.

🌱 Foundation15 min readDec 3, 2026Updated Dec 3, 2026
Canvas App Button Controls: Wiring Up OnSelect Actions, Navigation, and Visual Feedback for Beginner App Builders
On this page
  • Introduction
  • Prerequisites
  • What OnSelect Actually Is (And Why It Matters)
  • Setting Up a Button and Finding Its OnSelect Property
  • Navigating Between Screens with Navigate()
  • Chaining Actions: Doing More Than One Thing Per Button
  • Giving Users Visual Feedback
  • Using Notify()
  • Changing Button Color as a Loading State
  • Conditionally Enabling and Disabling Buttons
  • Common Button Patterns in Business Apps
  • Pattern 1: The Cancel / Back Button
  • Pattern 2: The Reset / Clear Button
  • Pattern 3: The Confirm-Before-Delete Button
  • Hands-On Exercise
  • Common Mistakes & Troubleshooting
  • Summary & Next Steps

Canvas App Button Controls: Wiring Up OnSelect Actions, Navigation, and Visual Feedback for Beginner App Builders

Introduction

Imagine you've just laid out a beautiful employee time-off request form in Power Apps. The fields look great, the layout is clean, and the data source is connected. There's just one problem: nothing actually happens when you click the Submit button. It sits there, decorative and useless, like a "push to open" sign on a pull door. This is the moment every new app builder hits — the gap between a screen that looks like an app and one that actually works like one.

Buttons are the nervous system of a canvas app. Every meaningful user action — submitting a form, navigating between screens, triggering a workflow, clearing a field — flows through a button's OnSelect property. Getting comfortable with that property, and knowing how to combine it with navigation, variables, and visual feedback, is what turns a pretty layout into a functional business tool.

By the end of this lesson, you'll know exactly how to wire up buttons to do real work: save data, move users between screens, give them visual confirmation that something happened, and prevent common logic mistakes that trap beginners. We're going to build on a realistic scenario — a simple IT equipment request app — so every example you see is grounded in something you'd actually build at work.

What you'll learn:

  • How the OnSelect property works and why it's the foundation of all button behavior
  • How to chain multiple actions together inside a single button press
  • How to navigate between screens using the Navigate() function
  • How to give users visual feedback using Notify(), loading states, and button color changes
  • How to conditionally enable or disable buttons based on form state

Prerequisites

Before diving in, you should be comfortable with the Power Apps Studio interface — knowing where the formula bar is, how to select a control, and how to add a screen. If you're brand new to the platform, start with Build Your First Canvas App in Power Apps to get your bearings. It also helps to have a basic familiarity with how screens and layout controls work, which is covered in Understanding Power Apps Screens, Containers, and Layout Controls.


What OnSelect Actually Is (And Why It Matters)

Every control in a canvas app has a set of properties — settings that define how it looks and behaves. A button's most important property is OnSelect, which is a formula that runs the moment a user taps or clicks that button.

Think of OnSelect as a recipe card taped to the back of the button. The moment someone presses it, Power Apps reads that recipe and executes every instruction in order. Those instructions are written in Power Fx, the formula language that powers canvas apps.

Here's the simplest possible OnSelect formula:

Notify("Button clicked!", NotificationType.Success)

That's it. When you press the button, a green notification banner appears at the top of the screen. Not life-changing, but it proves the circuit is complete.

The real power comes from chaining multiple instructions together using semicolons (or in some regional settings, double semicolons ;;). Power Apps reads them top to bottom, left to right:

Notify("Saving your request...", NotificationType.Information);
Patch(EquipmentRequests, Defaults(EquipmentRequests), {
    EmployeeName: TextInput_Name.Text,
    EquipmentType: Dropdown_Equipment.Selected.Value,
    RequestDate: Today()
});
Navigate(Screen_Confirmation, ScreenTransition.Fade)

That three-line formula does the following in sequence: shows the user an informational message, writes a new record to a data source called EquipmentRequests, then moves the user to a confirmation screen. That's the full submit workflow for a request form, written concisely and in plain logic. We'll break each piece down in the sections ahead.

Note

The semicolon is called the chaining operator in Power Fx. It tells Power Apps "do this, then do this, then do this." Without it, you can only run a single function per property.


Setting Up a Button and Finding Its OnSelect Property

Let's make this concrete. Open Power Apps Studio with a blank canvas app. Add a button by clicking Insert in the top menu, then selecting Button from the controls panel. A button labeled "Button" will appear on your screen.

To wire up its behavior, you need to select the button, then look at the property dropdown on the left side of the formula bar — the dropdown that probably says "Text" by default. Click that dropdown and choose OnSelect. The formula bar on the right is now showing you whatever formula is currently assigned to OnSelect (probably false or empty for a brand new button).

This property dropdown is how you switch between which property you're editing. It's easy to accidentally type a formula into the Text property (which controls the button label) instead of OnSelect. Always double-check that dropdown before writing action formulas.

Warning

A very common beginner mistake is typing Navigate(Screen2) into the button's Text property instead of OnSelect. The button will display the word "Navigate(Screen2)" as its label, and clicking it will do absolutely nothing. Always verify which property is active in the formula bar before writing your formula.


Navigating Between Screens with Navigate()

The Navigate() function is one of the most-used functions in any multi-screen app. Its job is simple: move the user from one screen to another.

The syntax is:

Navigate(TargetScreen, TransitionEffect)

Here's a real example from our equipment request app:

Navigate(Screen_ReviewRequest, ScreenTransition.Cover)

The first argument is the screen you want to go to — referenced by its name in the app, not a string. The second argument is the visual transition effect. Power Apps gives you several built-in options:

Transition What it looks like
ScreenTransition.Fade Screen fades in/out
ScreenTransition.Cover New screen slides over from the right
ScreenTransition.CoverRight New screen slides over from the left
ScreenTransition.None Instant switch, no animation

For business apps, ScreenTransition.Fade and ScreenTransition.None feel most professional. The sliding transitions can feel a bit mobile-game-ish for enterprise tools.

For deeper navigation patterns — handling back buttons, managing navigation history, and passing context between screens — check out Building Multi-Screen Apps with Navigation and Variables in Power Apps. That lesson goes into the Back() function and how to use context variables to pass data between screens, which pairs directly with what we're covering here.

Tip

Name your screens clearly before writing navigation formulas. Navigating to Screen3 is much harder to maintain than navigating to Screen_ConfirmationPage. Rename screens by right-clicking them in the Screens panel on the left and choosing Rename.


Chaining Actions: Doing More Than One Thing Per Button

Real buttons rarely just navigate. They usually need to validate, save, notify, and then navigate — all in one tap. This is where the chaining operator becomes essential.

Here's a fully chained submit button for our equipment request form:

If(
    IsBlank(TextInput_Name.Text) || IsBlank(Dropdown_Equipment.Selected.Value),
    Notify("Please fill in all required fields.", NotificationType.Error),
    Patch(
        EquipmentRequests,
        Defaults(EquipmentRequests),
        {
            EmployeeName: TextInput_Name.Text,
            EquipmentType: Dropdown_Equipment.Selected.Value,
            RequestDate: Today(),
            Status: "Pending"
        }
    );
    Notify("Request submitted successfully!", NotificationType.Success);
    Navigate(Screen_Confirmation, ScreenTransition.Fade)
)

Walk through what this does:

  1. Checks if required fields are blank. If either the name or the equipment type is empty, it shows an error notification and stops — the If() function only executes one branch.
  2. Patches the data source. Patch() writes a new record to EquipmentRequests with the values from your form controls.
  3. Shows a success notification so the user knows something happened.
  4. Navigates to a confirmation screen.

The Patch() function here deserves a brief explanation. Defaults(EquipmentRequests) tells Power Apps "create a new record using the default values for this table." The third argument is a record of the values you're setting. If you want to go deeper on Patch() and the other data-writing formulas, Master Power Apps Formulas: Navigate, Filter, Lookup, and Patch for Professional Apps is the logical next stop.

Key insight

In Power Fx, If() is not just a logical test — it's a branching execution path. The chaining semicolons inside each branch of an If() are how you sequence multiple actions within that branch. This is a mental model shift from thinking of If as just returning a value.


Giving Users Visual Feedback

One of the most important (and most neglected) aspects of button design is feedback — letting the user know their action registered. Without feedback, users click again, submit duplicates, or assume the app is broken.

Using Notify()

Notify() is your fastest feedback tool. It displays a banner message at the top of the app screen:

Notify("Your request has been submitted!", NotificationType.Success)

The four notification types are:

  • NotificationType.Success — green banner, positive confirmation
  • NotificationType.Error — red banner, something went wrong
  • NotificationType.Warning — yellow banner, proceed with caution
  • NotificationType.Information — blue banner, neutral status update

Use success notifications after a successful save. Use error notifications when validation fails. Use information notifications for in-progress actions (like "Uploading your file...").

Changing Button Color as a Loading State

For longer operations — especially anything that calls a Power Automate flow or a slow data source — you want the button to visually indicate it's working. You can do this with a global variable that acts as a "busy" flag.

First, in your button's OnSelect, set a variable before the long operation and clear it after:

Set(varIsSubmitting, true);
/* long operation here, like a Flow call */
PowerAutomateFlow.Run(TextInput_Name.Text);
Set(varIsSubmitting, false);
Navigate(Screen_Confirmation, ScreenTransition.Fade)

Then wire up the button's visual properties to react to that variable:

  • DisplayMode property: If(varIsSubmitting, DisplayMode.Disabled, DisplayMode.Edit)
  • Fill (button background color): If(varIsSubmitting, RGBA(180,180,180,1), RGBA(0,120,212,1))
  • Text property: If(varIsSubmitting, "Submitting...", "Submit Request")

Now when the user clicks the button, it immediately grays out, its label changes to "Submitting...", and it won't accept a second click. When the operation completes, it snaps back to normal. This three-property combination creates a polished, professional loading state with zero additional controls.

Tip

Always disable the button during async operations (like Power Automate flows) by setting its DisplayMode to DisplayMode.Disabled. Without this guard, an impatient user can click the button multiple times and submit duplicate records.


Conditionally Enabling and Disabling Buttons

Not every button should always be clickable. A "Submit" button on an incomplete form should be visually muted and non-functional — it's a UI contract with the user that tells them "you're not done yet."

The DisplayMode property controls this. Set it in the formula bar with the button selected and the property dropdown showing DisplayMode:

If(
    IsBlank(TextInput_Name.Text) || IsBlank(Dropdown_Equipment.Selected.Value),
    DisplayMode.Disabled,
    DisplayMode.Edit
)

When DisplayMode is set to DisplayMode.Disabled, the button appears grayed out and completely ignores clicks — the OnSelect formula won't run at all, no matter how hard the user mashes it.

You can also soften this by using DisplayMode.View — the button remains visible and styled normally but is non-interactive. This is useful for read-only states.

A quick note on button color to reinforce validation state: consider also setting the button's Fill color to change alongside its DisplayMode:

If(
    IsBlank(TextInput_Name.Text) || IsBlank(Dropdown_Equipment.Selected.Value),
    RGBA(200, 200, 200, 1),
    ColorValue("#0078D4")
)

This makes the state shift visually obvious without relying on the user to notice the subtle gray that the default disabled state applies. If you want to go further with consistent color theming across your whole app, Power Apps Design Patterns: Responsive Layouts and Themes covers how to build a coherent visual system.


Common Button Patterns in Business Apps

Let's look at three button scenarios you'll encounter constantly.

Pattern 1: The Cancel / Back Button

Navigate(Screen_Home, ScreenTransition.None)

A cancel button doesn't need to save anything — it just navigates away. Use ScreenTransition.None for snappiness. If you want to warn the user about unsaved changes first, you can wrap it in a confirmation:

If(
    varFormDirty,
    Notify("You have unsaved changes. Navigate anyway?", NotificationType.Warning),
    Navigate(Screen_Home, ScreenTransition.None)
)

Here varFormDirty would be a global variable you set to true whenever a user modifies an input field, using the OnChange property of those input controls.

Pattern 2: The Reset / Clear Button

Reset(TextInput_Name);
Reset(TextInput_Description);
Reset(Dropdown_Equipment);
Notify("Form cleared.", NotificationType.Information)

Reset() returns a control to its default state — empty for text inputs, first item for dropdowns. Chain one Reset() call per control, then notify the user.

Pattern 3: The Confirm-Before-Delete Button

If(
    varConfirmDelete,
    Remove(EquipmentRequests, Gallery_Requests.Selected);
    Set(varConfirmDelete, false);
    Notify("Request deleted.", NotificationType.Warning),
    Set(varConfirmDelete, true);
    Notify("Click Delete again to confirm.", NotificationType.Warning)
)

This two-tap pattern uses a boolean variable as a confirmation gate. First click sets the flag and warns the user. Second click executes the delete and resets the flag. It's a simple, zero-extra-controls approach to preventing accidental deletions.


Hands-On Exercise

Let's put everything together. In this exercise, you'll build a two-screen equipment request mini-app with a fully wired submit button.

Step 1: Create two screens. In Power Apps Studio, add two screens. Rename them Screen_Form and Screen_Confirmation.

Step 2: Build the form screen. On Screen_Form, add:

  • A Text Input control named TextInput_Name with a hint text of "Your full name"
  • A Dropdown control named Dropdown_Equipment with Items set to ["Laptop", "Monitor", "Keyboard", "Headset"]
  • A Button control named Button_Submit with its Text property set to "Submit Request"

Step 3: Build the confirmation screen. On Screen_Confirmation, add:

  • A Label with its Text set to "Request submitted! We'll be in touch."
  • A Button named Button_Back with Text set to "Submit Another Request"

Step 4: Wire up the submit button. Select Button_Submit. In the property dropdown, choose DisplayMode and enter:

If(IsBlank(TextInput_Name.Text), DisplayMode.Disabled, DisplayMode.Edit)

Now switch the property dropdown to OnSelect and enter:

Patch(
    EquipmentRequests,
    Defaults(EquipmentRequests),
    {
        EmployeeName: TextInput_Name.Text,
        EquipmentType: Dropdown_Equipment.Selected.Value,
        RequestDate: Today()
    }
);
Notify("Request submitted!", NotificationType.Success);
Navigate(Screen_Confirmation, ScreenTransition.Fade)

Note

If you don't have a SharePoint list or Dataverse table set up, you can replace the Patch() line with just Set(varLastRequest, TextInput_Name.Text) for now. The navigation and notification will still work, letting you test the UX flow even without a data source ready. If you want to add a data source, Connecting Power Apps to SharePoint, Excel, and Dataverse: A Complete Integration Guide walks you through each option.

Step 5: Wire up the back button. Select Button_Back on Screen_Confirmation. Set its OnSelect to:

Navigate(Screen_Form, ScreenTransition.Fade);
Reset(TextInput_Name);
Reset(Dropdown_Equipment)

Step 6: Test it. Press F5 (or click the Play button in the top right) to enter preview mode. Try clicking Submit with an empty name field — it should be grayed out. Fill in the name, click Submit, and watch the notification fire before the screen transitions. Navigate back and confirm the form resets.


Common Mistakes & Troubleshooting

"My button doesn't do anything when I click it." Check two things: First, make sure you're in Preview mode (press F5 or click the play button). Buttons don't fire in Edit mode — clicking them just selects the control. Second, verify your formula is in the OnSelect property, not Text or any other property.

"The formula bar shows an error (red underline) in my OnSelect formula." Hover over the red underline to see the error message. The most common causes are: a misspelled screen name in a Navigate() call, missing closing parentheses, or referencing a data source that isn't connected. For systematic debugging help, check out Debugging Canvas Apps: Using the Power Apps Monitor Tool and Formula Errors to Fix Issues Fast.

"My button navigates but the form data doesn't save." Check that your Patch() formula comes before your Navigate() call in the chain. If navigate fires first, Power Apps moves to the new screen and the patch may not complete as expected.

"The button stays disabled even when I fill in the fields." If your DisplayMode formula references a control that's inside a form control (like EditForm1), you may need to reference the form's validity property instead: If(EditForm1.Valid, DisplayMode.Edit, DisplayMode.Disabled). Forms track their own validation state, which is a cleaner pattern than checking individual inputs when you have many fields.

"I can't chain actions — Power Apps shows an error when I use semicolons." In some regional settings, Power Apps uses ;; (double semicolons) instead of ; as the chaining operator. If single semicolons cause errors in your environment, try doubling them.


Summary & Next Steps

You now understand the full button lifecycle in a canvas app: how OnSelect works as the execution hook, how to chain multiple actions together, how to navigate between screens with Navigate(), and how to give users meaningful feedback through Notify(), disabled states, and dynamic button text.

The pattern you've learned — validate, act, notify, navigate — is the template for virtually every button in every business app you'll build. It doesn't matter if the button is submitting an expense report, approving a purchase order, or logging a support ticket. The shape of the logic is the same.

Here's where to go next:

  • If you want to deepen your formula skills, particularly around reading and writing data, Master Power Apps Formulas: Navigate, Filter, Lookup, and Patch for Professional Apps is the natural continuation.
  • To understand how variables work and when to use context variables versus global variables (which came up in our button patterns), Power Apps Variables Explained: When to Use Global Variables, Context Variables, and Collections in Canvas Apps gives you the full picture.
  • When your form grows beyond a few inputs, you'll want to understand how validation integrates with the form control itself — Power Apps Data Validation: Using If, IsBlank, and IsMatch to Prevent Bad Data in Forms covers exactly that.

Buttons are simple controls with enormous leverage. Now you know how to use that leverage.

Work With Us

From insight to implementation

Reading is the start. When you're ready to build the data, automation, or AI systems behind it, our team turns strategy into shipped results.

Let's Build

Canvas Apps 101

Previous

Canvas App Approval Workflows: Triggering Power Automate Flows from Form Submissions, Passing Dynamic Record Context, and Surfacing Approval Status Back in the App

Related Insights

Power AppsExpert

Configuring Model-Driven App Advanced Find and FetchXML: Building Complex Multi-Table Queries, Saving Personal Views, and Exporting Filtered Dataverse Record Sets for Operational Reporting

29 min
Power AppsExpert

Canvas App Approval Workflows: Triggering Power Automate Flows from Form Submissions, Passing Dynamic Record Context, and Surfacing Approval Status Back in the App

30 min
Power AppsPractitioner

Configuring Dataverse Table-Specific Security Role Privileges and Access Depth Levels in Model-Driven Apps

26 min

On this page

  • Introduction
  • Prerequisites
  • What OnSelect Actually Is (And Why It Matters)
  • Setting Up a Button and Finding Its OnSelect Property
  • Navigating Between Screens with Navigate()
  • Chaining Actions: Doing More Than One Thing Per Button
  • Giving Users Visual Feedback
  • Using Notify()
  • Changing Button Color as a Loading State
  • Conditionally Enabling and Disabling Buttons
  • Common Button Patterns in Business Apps
  • Pattern 1: The Cancel / Back Button
  • Pattern 2: The Reset / Clear Button
  • Pattern 3: The Confirm-Before-Delete Button
  • Hands-On Exercise
  • Common Mistakes & Troubleshooting
  • Summary & Next Steps