cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Highlighted
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
Highlighted
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 ;).
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
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 258 members 6,410 guests
Please welcome our newest community members: