cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
crofty82
Level: Powered On

Stopping a button showing up on edit

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)

1 ACCEPTED SOLUTION

Accepted Solutions
alex3
Level: Powered On

Re: Stopping a button showing up on edit

Hi @crofty82 ,

 

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!

View solution in original post

3 REPLIES 3
alex3
Level: Powered On

Re: Stopping a button showing up on edit

Hi @crofty82 ,

 

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!

View solution in original post

cwebb365
Level 10

Re: Stopping a button showing up on edit

If(datacardvalue.selected.value = “whatever” & form.displaymode = displaymode.edit) or something along those lines. Not at computer so can’t verify Smiley Wink.
Super User
Super User

Re: Stopping a button showing up on edit

@crofty82 

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.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 76 members 3,493 guests
Please welcome our newest community members: