web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Using a gallery for re...
Power Apps
Unanswered

Using a gallery for repetitive dropdowns issue

(0) ShareShare
ReportReport
Posted on by 364

Hi all,

 

So I've made a gallery to house a set of dropdowns, for the aim of reducing the number of controls on a screen. I've made a table like below:

Table(
 {Name: "Department", Items: Sort(RenameColumns(colDepartments, ShortName, Value), SortOrder)},
 {Name: "TaskType", Items: Distinct(colTaskTypes, TaskType)},
 {Name: "Responsibility", Items: Distinct(colResponsibility, Responsibility)}
)

I've renamed the Department outputs to Value so it'll work with the "fields" parameter of the dropdown. Each of the collections being referenced have an extra row to act as a default value/header for the dropdown.

 

This gives me something like this:

 

EpicTriffid_0-1713953951698.png

 

Now what I'd like to do is two things:

1. I'd like to make it so that both the Task Type and Responsibility dropdowns are disabled while the Department dropdown has "Department" selected. I figure i might need to reference the specific values within the dropdown, but I can't figure out how. Some combination of With() or As? Whatever I try in DisplayMode doesn't seem to work.

 

2. I'd like to filter the Task Type dropdown based on whatever Department is selected. colTaskTypes (the collection this dropdown is populated by) has separate entries based on the Department selected.

 

It would be as simple as anything if these were seperate controls, but using this method of reducing the number of controls is boggling my brain. Can anyone offer any advice, as well as explaining how it works?

 

To add, I know that reducing the number of controls is not essential, and that it really would be a problem to just have three seperate dropdown controls, but this is really an exercise in improving my PowerApps knowledge!

Categories:
I have the same question (0)
  • Daniel Bocklandt Profile Picture
    5,099 Super User 2025 Season 2 on at

    Since you are inside a Gallery it is not possible to achieve. You would basically ask the drop down to disable itself, if the value of it is Department. So as soon as you would select Department all drop downs, would be disabled. you couldn't change your selection anymore.

    Since you are in a gallery I don't get how you could select department in a dropdown since the table that you displayed does not give any other options. Each Record has just one option to select. 

    please correct me if there was anything i missed.  

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard