I know this is just a simple syntax but just can't get the right order !
Trying to disable a button if a text box is empty AND a collection is empty. No errors but it only works one or the other. So if I put something in the text box and not in collection or vv it switches to edit mode. Here's what I've tried
If(IsBlank(txt_landing_pushnotificationtext) && IsEmpty(coTest),DisplayMode.Disabled,Edit)
If(IsBlank(txt_landing_pushnotificationtext) AND IsEmpty(coTest),DisplayMode.Disabled,Edit)
If(IsBlank(txt_landing_pushnotificationtext) && IsBlank(coTest),DisplayMode.Disabled,Edit)
If(IsBlank(txt_landing_pushnotificationtext) AND IsBlank(coTest),DisplayMode.Disabled,Edit)
I know someone will look at this and see exactly what I'm doing wrong but it ain't me ! 🙂
TIA
If you are evaluating a collection, IsEmpty() is sufficient, perhaps this is the reason it didn't work. I switched the logic in the formula below?
With({blnk:!IsBlank(txt_landing_pushnotificationtext),
emp:!IsEmpty(coTest)
},
If(blnk&&emp, DisplayMode.Edit, //Edit enabled only if there is data in
DisplayMode.Disabled) // the textinput and the collection
)
)
WarrenBelz
637
Most Valuable Professional
stampcoin
570
Super User 2025 Season 2
Power Apps 1919
473