I need to disable a button inside a gallery.
Trying these two expressions, both giving error.
Thoughts please! Thank you.
I tried:
If(Value(TextInput7_2.Text) > Value(TextInput7.Text), DisplayMode.Disabled, Edit)
and
If(ThisItem.Cost_mitigation_1 > ThisItem.effect_mitigation_1, DisplayMode.Disabled, Edit)
If(ThisItem.Cost_mitigation_1 > ThisItem.effect_mitigation_1, DisplayMode.Disabled, DisplayMode.Edit)
. Also, make sure you are using correct names of your columns. Let me know if this helps.Cost_mitigation_1
andeffect_mitigation_1
? If not number, try using:If(Value(ThisItem.Cost_mitigation_1) > Value(ThisItem.effect_mitigation_1), DisplayMode.Disabled, DisplayMode.Edit)
.