cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Super User III
Super User III

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
Highlighted
Super User III
Super User III

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

Highlighted

Hello, which property should I put that formula?

Thanks

Highlighted

@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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,973)