Hello, I have a button which should be enabled = DisplayMode.Edit once and only when, three conditions are met.
The conditions are:
Len(vImg) < 1460000​
theResult.employeeid = Blank()​
Checkbox.Value = false​
I can't work out the structure of the IF statement, to Disable the Button if one or all aren't met? However I try to form the startement, as soon as the checkbox is ticked the button is enabled, but I can clearly see there isn't an EmployeeID present?
This is where I got to yesterday, before closing the laptop lid!!!
If(
Checkbox.Value = false && theResult.employeeid = Blank() && Len(vImg) < 1460000,
Disabled,
If(
Len(vImg) > 1460000 && Checkbox.Value = true && Not(theResult.employeeid=Blank()),
Edit
)
)
Just brilliant!!! How did I not see it!!!!! I reckon I had spent too much time looking at it yesterday.
Thank you @AmDev
Try the following:
If(
Checkbox.Value && !IsBlank(theResult.employeeid) && Len(vImg) < 1460000,
Edit,
Disabled
)
Hope this helps
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.