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:
Go to Solution.
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.
You may also try:
If(DisplayMode=DisplayMode.Edit,true,false)* (I was not able to get it to work)
Hope this helps!
View solution in original post
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.
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020
Learn how to build the business apps that you need.