logo
search
Others

How to Enable a Power Apps Submit Button After Gallery Fields Are Complete

Rana GarciaRana Garcia Oct 13, 2026 868 views

Question details

The user needs to configure a Submit button in Power Apps so it remains disabled until 17 mandatory gallery items containing various input controls are completed.

How to Enable a Power Apps Submit Button After Gallery Fields Are Complete
Product
Microsoft Power Apps
Device & OS
not provided
Scenario
Developing a Power Apps form with a gallery where users must complete multiple required fields, radio buttons, and dependent selections before submission.
Observed behavior
The user wants the Submit button to actively transition from a disabled state to an enabled state only when all validation conditions inside the gallery are met.
Before you start

Ensure you have edit access to your app in Power Apps Studio and note down the exact control names for your gallery, submit button, and the input fields inside the gallery template.

Solution 1Recommended

Use DisplayMode Property with Filter and CountRows

You can dynamically control the Submit button's state by counting the number of incomplete items in the gallery and setting the DisplayMode accordingly.

Because the controls are located inside a gallery, you cannot reference them directly from outside. Instead, you must iterate through the gallery's 'AllItems' property to check if any required inputs are still blank.

By filtering the gallery for incomplete records and counting the result, you can disable the button if the count is greater than zero.

1
Select the Submit Button

Open your canvas app in Power Apps Studio, click on your target Submit button, and select the 'DisplayMode' property from the property dropdown list at the top left.

2
Enter the Validation Formula

In the formula bar, enter a conditional formula using CountRows and Filter. For example: If(CountRows(Filter(YourGalleryName.AllItems, IsBlank(TextInput1.Text) || IsBlank(Dropdown1.Selected) || IsBlank(Radio1.Selected))) > 0, DisplayMode.Disabled, DisplayMode.Edit).

3
Test the Application

Press the F5 key or click the Play button to preview the app. Verify that the Submit button remains disabled (greyed out) until you have filled out all 17 items correctly.

Use DisplayMode Property with Filter and CountRows
Community Support for Complex Logic: If your gallery includes highly complex dependent selections or multi-step validations, posting your specific data structure in the official Power Apps Community is recommended for tailored formula assistance.
Free Microsoft Office alternative

Discover WPS Office for Your Everyday Document Needs

While Power Apps handles advanced custom application building within the Microsoft ecosystem, WPS Office provides a free, lightweight, and highly compatible alternative for your daily word processing, spreadsheet, and presentation tasks. Enjoy a familiar interface and seamless file compatibility without the heavy subscription costs.

  1. 1. Download the Installer: Visit the official WPS website and download the free installer for your operating system.
  2. 2. Install WPS Office: Run the installer and follow the quick on-screen instructions to set up the software.
  3. 3. Open Your Files: Launch WPS Office and instantly open, edit, and save your existing Microsoft Office documents seamlessly.
Fully compatible with Microsoft Word, Excel, and PowerPoint file formats.Familiar, tabbed user interface for a zero-learning-curve transition.Lightweight application that runs smoothly on Windows, Mac, Linux, and mobile devices.Built-in PDF editing and document conversion tools at no extra cost.
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't the IsBlank function work for Dropdown controls in Power Apps?

Standard Dropdown controls in Power Apps always hold a default selected record if they contain data. To properly validate a dropdown, check if 'Dropdown.Selected.Value' is blank, or use a Combobox control instead, which natively supports an empty (unselected) state.

Can I use the ForAll function to validate all fields in a gallery?

While ForAll is useful for patching or iterating over data, using 'CountRows' combined with 'Filter' on the 'Gallery.AllItems' property is generally more efficient and easier to write for simply checking if any required fields are blank to toggle a button's DisplayMode.

How do I handle radio buttons in my validation formula?

To check if a user has selected a radio button within a gallery item, you can include 'IsBlank(RadioControlName.Selected)' inside your gallery validation filter condition. If no option is selected, it will return true and flag the item as incomplete.