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 Pages / How to disable the ite...
Power Pages
Answered

How to disable the item in the drop down list box

(0) ShareShare
ReportReport
Posted on by 53

Hi,

I hope anyone could help me with this:

I want to disable the delete button shown below based on certain condition.

 

I tried with jquery but unsuccessful.Capture.PNG

Capture.PNG

 

Thanks

Categories:
I have the same question (0)
  • oliver.rodrigues Profile Picture
    9,471 Most Valuable Professional on at

    Hi

     

    in this post I talk about adding a filter using FetchXML, that might be what you need: http://oliverrodrigues365.com/2020/04/26/power-apps-portals-entity-list-conditional-action/

     

     

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

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Vaibhav S Jadhav Profile Picture
    92 on at

    Hello,

     

    If you don't want to touch portals defined things and just want to disable that delete button then you can go with CSS.
    By using display:none; you can achieve this.

    To give the CSS access the element by its hierarchy 


    Thanks,
    Vaibhav  

  • harry_c2020 Profile Picture
    53 on at

    Hi Oliver,

     

    Thanks for the solution. It works, however it seems whenever the record used in the filter criteria's changes and should cause the  menu item to be hidden or shown, it won't be reflected until I logout and login back. It seems it's cached somewhere. Is there anyway to refresh it automatically.

     

     

    Thanks,
    Harry

  • Verified answer
    oliver.rodrigues Profile Picture
    9,471 Most Valuable Professional on at

    Hi

     

    looks like you are facing a Caching issue, I have another post on caching tips: https://oliverrodrigues365.com/2020/07/27/power-apps-portals-caching-tips/

     

    basically if your data is being updated in CDS, you will have a 15min SLA time for the data to be refreshed

    in my post I talk about a way to bypass (when using fetch) using a timestamp, I haven't tried in that entity list filter, but it's worth trying to see if you can bypass the caching

     

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

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 61

#2
Valantis Profile Picture

Valantis 46

#2
11manish Profile Picture

11manish 46

Last 30 days Overall leaderboard