I have a number of buttons i need to disable on multiple conditions. if any or all of the variables below are true button should be disabled?
If i use just one variable the button is disabled, its just when i want to add more than one
Works as a single condition: If(var_R1_C_1_1_remove,DisplayMode.Disabled,DisplayMode.Edit)
how to make it work with the below.
If(var_R1_C_1_1_remove,DisplayMode.Disabled,DisplayMode.Edit)||
If(var_R1_C_1_3_remove,DisplayMode.Disabled,DisplayMode.Edit)||
If(var_R1_C_1_4_remove,DisplayMode.Disabled,DisplayMode.Edit)||
If(var_R1_C_1_5_remove,DisplayMode.Disabled,DisplayMode.Edit)||
If(var_R1_C_1_6_remove,DisplayMode.Disabled,DisplayMode.Edit)||
If(var_R1_C_1_7_remove,DisplayMode.Disabled,DisplayMode.Edit)
Thanks in advance.
Thank you, that worked perfectly.. 🙂
Hi @Mclean2023
Try this code
If(
Var1 = false || Var2 = false || Var3 = false,
DisplayMode.Disabled,
DisplayMode.Edit
)
Thanks
If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.