cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
krishnasharma13
Frequent Visitor

Problem in using remove in If function

I'm getting a runtime error while using this "If(Label.Text="Text", Remove(Database, Gallery.Selected))", can we use this or not, if not what is an alternative way for this?

2 ACCEPTED SOLUTIONS

Accepted Solutions
BCBuizer
Super User
Super User

Hi @krishnasharma13 ,

 

Not sure what may be causing the error, but please consider this:

 

RemoveIf(Database, Label.Text = "Text" && ID = Gallery.Selected.ID)


Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

View solution in original post

NandiniBhagya20
Solution Sage
Solution Sage

If you are using the below formula on select of a button, it should work:
If(Label.Text="Text", Remove(Database, Gallery.Selected))


Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

View solution in original post

2 REPLIES 2
BCBuizer
Super User
Super User

Hi @krishnasharma13 ,

 

Not sure what may be causing the error, but please consider this:

 

RemoveIf(Database, Label.Text = "Text" && ID = Gallery.Selected.ID)


Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.
NandiniBhagya20
Solution Sage
Solution Sage

If you are using the below formula on select of a button, it should work:
If(Label.Text="Text", Remove(Database, Gallery.Selected))


Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,001)