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 Apps
Answered

Checkbox select

(0) ShareShare
ReportReport
Posted on by 909

Hello,

 

I have a gallery that has a button:

 

Remove(IdeaBox_1;ThisItem)

 

This delete an item.

But this has no warning or anything.

I am quiet new to PowerApps and making message boxes with rectangle is not an easy task for me, so I thought that I'll make a checkbox at the top of this gallery.

Elitezone_0-1600336036958.png

I want to update this delete button properties to work in accordance with this Checkbox1.

 

So i tried to do a formula like that:

 

If(Checkbox1.Value = true;false);;Remove(IdeaBox_1;ThisItem)

 

It does not spam any errors but this checkbox does not work. No matter what I do I can delete everything.

Other formula spams error: 

 

 

If(IsBlank(Checkbox1.Value);Notify("Click checkbox before you try to delete.";NotificationType.Error);
Remove(IdeaBox_1;ThisItem)

 

I would love this second formula to works since it spams error and user will see what they have to do.

Could you please help me?

 

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @Elitezone,

     

    Try this formula on the OnSelect property of your button:

     

    If(Checkbox1.Value; Remove(IdeaBox_1, ThisItem); Notify("Click checkbox before you try to delete."; NotificationType.Error))

     

    If the Checkbox is checked, the item will be removed, otherwise the notification will be shown.

     

    Hope this helps!

    Joel

  • Elitezone Profile Picture
    909 on at

    @Anonymous 

    Joel, it was simple, yet awesome solution. Thank you.

    Thank you.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard