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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Display mode of the bu...
Power Apps
Answered

Display mode of the button according to the record based in comboboxes

(0) ShareShare
ReportReport
Posted on by 361

I have a gallery showing the time of the last registration made. The formula has already been created and they search correctly. The name of the label in the gallery is Label11 (However, I don't think this is useful... lol)

 

What I need is to create a relationship in the display mode of button 1 according to these comboboxes below, which perform the filter of a gallery:

 

1. Team (ComboBox1_1)
2. Shift (ComboBox2_1)
3. Month (ComboBox3)
4. Week (ComboBox2_2) -> Here the items are as: Week 1, week 2, week 3, week 4 and week 5.

And make a condition for the display mode of a button that will enable it if there are no records in the DataGeradosIPG list.

 

Example: I am in the month of October, I selected Team X, Shift 1, Month October and week 1. If there is no record in the list DataGeradosIPG of these items, enable the button, if there is, disable it.

 

Joaoandrebs_0-1698326115013.png

Joaoandrebs_1-1698326985071.png

 

 

Categories:
  • Verified answer
    raks Profile Picture
    on at

    Code to put on displayMode

    If(CountRows(Filter(DataGeradosIPG,Team=ComboBox1_1.selected.Value,shift=...))>0,Disabled,Edit)

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard