cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sajarac
Kudo Kingpin
Kudo Kingpin

Disable a button if a collection is not empty

Hi there, as the title indicates. I would like to prevent that the user navigates to different screen is the collection has items, I mean if the collection has not been patched or posted.

 

Any help please?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
mdevaney
Super User III
Super User III

@sajarac 

Put this code in the DisplayMode property of your button

 

If(IsEmpty(yourCollectionName),Disabled,Edit)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

1 REPLY 1
mdevaney
Super User III
Super User III

@sajarac 

Put this code in the DisplayMode property of your button

 

If(IsEmpty(yourCollectionName),Disabled,Edit)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (3,297)