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 / Stopping a button show...
Power Apps
Answered

Stopping a button showing up on edit

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hey, is there a way to use a formula to make a button visible on view but not edit please?

 

I already have an 'IF' formula dictating whether it shows up or not based on the value of another field, but is there a way to also hide it on edit regardless? This is my current formula on visible:

 

If(DataCardValue2.Selected.Value="Shareable",true,false)

Categories:
  • Verified answer
    alex3 Profile Picture
    48 on at

    Hi @Anonymous ,

     

    I was not able to accomplish this earlier, but what I was able to do was that the button is disabled based on this conditions.

    On DisplayMode:

    If(DataCardValue2.Selected.Value="Shareable",DisplayMode.Edit,View)

     

    You may also try:

    On Visible:

    If(DisplayMode=DisplayMode.Edit,true,false)* (I was not able to get it to work)

     

    Hope this helps!

  • cwebb365 Profile Picture
    3,334 Most Valuable Professional on at
    If(datacardvalue.selected.value = “whatever” & form.displaymode = displaymode.edit) or something along those lines. Not at computer so can’t verify ;).
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    If you want to hide the button, then use this formula in your Visible property of the button:

     

    (DataCardValue2.Selected.Value="Shareable" && !yourForm.DisplayMode=Edit)

     

    If you want to disable the button, then use this formula in the DisplayMode property of your button:

     

    If(DataCardValue2.Selected.Value="Shareable" && !yourForm.DisplayMode=Edit, Edit, Disabled)

     

    Hope that helps.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard