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 Platform Community / Forums / Power Apps / Making a record vanish
Power Apps
Answered

Making a record vanish

(0) ShareShare
ReportReport
Posted on by 38

Hey Guys!

 

I am building an check list app and need help a functionality I seem to not be able to find anything on. I am trying to create a dropdown button in where it gives a "yes","No" option for if the task has been completed, If yes i would like that record to vanish from the app but i do not want the record to be deleted in my sharepoint database. Im not sure how to code this. If anyone can assist that would be amazing. Thank you in advanced! 

Categories:
  • Verified answer
    Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @Dongle12 ,

     

    If your SharePoint list has a Yes/No field (either a Text field with Yes/No in it, or a Yes/No column type), you can simply apply a Filter function in the Items property to exclude any record where the Yes/No field = No.

     

    If you have a Gallery for example, you can apply the below to the Items property:

     

    If the Yes/No field is a Single Line Text field in SharePoint:

     

    Filter(
     'Your Data',
     'Yes or No Column' = Dropdown1.Selected.Value
    )

     

     

    If the Yes/No field is a Yes/No type field in SharePoint:

     

    Filter(
     'Your Data',
     Dropdown1.Selected.Value = "No" || 'Yes No Column',
     Dropdown1.Selected.Value = "Yes" || !'Yes No Column'
    )

     

     

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

     

  • Dongle12 Profile Picture
    38 on at

    @Amik 

     

    Thank You Amik! 

     

    I am not a coder by heart, I attached a screen shot of what i have, so i have a gallery that pulls data from the sharepoint, once task is selected i would like them to use this drop down to indicate "yes, no", if yes is true the task will vanish from the gallery 1 section i applied the code you sent and im recieving a "Expected operator. We expect an operator such as +, *, or & at this point in the formula". If you could please help me figure out what i did wrong that would be very appreciated. Thank You!

    Screenshot 2023-07-20 070937.png
  • Dongle12 Profile Picture
    38 on at

    @Amik 

     

    I realize i forgot to include the "yes, no" field in my sharepoint list, i went ahead and added that in, it is not pulling that list however usually i see it auto populate i had to manually input the full name, it is now giving me a delegation error. 

    Screenshot 2023-07-20 072823.png

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard