cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JoseC12 Helper V
Helper V

Delete a record by inserting a text

Good afternoon everybody, 

I have a gallery where I can edit number, but I want to know if I can write any number (for example: '0') and delete the record.
Gallery.PNG

Instead of 6, I write 0 and it removes it

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz Community Champion
Community Champion

Re: Delete a record by inserting a text

Hi @JoseC12 ,

A bit dangerous, but you will have to put a valid value in YourField.Value

If(
   Yourfield.Value = 0,
   Remove(ThisItem)
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

3 REPLIES 3
WarrenBelz Community Champion
Community Champion

Re: Delete a record by inserting a text

Hi @JoseC12 ,

A bit dangerous, but you will have to put a valid value in YourField.Value

If(
   Yourfield.Value = 0,
   Remove(ThisItem)
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

JoseC12 Helper V
Helper V

Re: Delete a record by inserting a text

Hello, which property should I put that formula?

Thanks

WarrenBelz Community Champion
Community Champion

Re: Delete a record by inserting a text

@JoseC12 

In the OnChange of the control that you are inputting the zero.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

Attending MBAS? Claim your badge

Attending MBAS? Claim your badge

Whether you’re streaming the digital event live, or watching on-demand, claim your attendee badge to sport on your profile.

‘Better Together’ T-Shirt Contest – Winner Announced!

‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

‘Better Together’ Integration Forum Launch

‘Better Together’ Integration Forum Launch

We're launching a how-to forum where you can learn about how Power BI integrates with other Power Platform products.

Emergency Response & Monitoring Solution

Emergency Response & Monitoring Solution

Microsoft has created a regional government emergency response and monitoring solution that is built on Power Apps and Power BI.

Top Solution Authors
Top Kudoed Authors
Users online (5,138)