Dear all:
I working on power apps with sharepoint list.
Now i have a question, how to set Botton can be clicked when condition is match and Botton can't be clicked when condition is not match?
For example:
When approvalStatus = "Approved" the Botton can be clicked, when approvalStatus <> "Approved", the botton can't be clicked.
Thanks for your support:)
Solved! Go to Solution.
I was using your code posted here (I cannot see your data). If ApprovalStatus is a Choice column
If(
approvalStatus.Value = "Approved",
DisplayMode.Edit,
DisplayMode.Disabled
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Hi @Jackywei_BDF ,
Something like this on the DisplayMode of the Button
If(
approvalStatus = "Approved",
DisplayMode.Edit,
DisplayMode.Disabled
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Thanks for your reply.
Unfortunatley, it doesn't work.
Please take a look screenshot from my desk.
It seems show error as below
I was using your code posted here (I cannot see your data). If ApprovalStatus is a Choice column
If(
approvalStatus.Value = "Approved",
DisplayMode.Edit,
DisplayMode.Disabled
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps