web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Making a record vanish
Power Apps
Unanswered

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:
I have the same question (0)
  • Verified answer
    Ami K Profile Picture
    15,679 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!

  • 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. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard