Hello.
I am fairly new to PowerApps. I have this form where I want the Next button to be unclickable until 4 dropdowns have values (when the user selects one of the choices). The first drop down is in reference to "DataCardValue9". This is the code I used on the DisplayMode of the Next button and it's working.
If(IsBlank(DataCardValue9.Selected), DisplayMode.Disabled, DisplayMode.Edit)
There are another 3 dropdowns below that and one optional text box which I am not concerned about. The drop downs are all mandatory. They are named DataCardValue10, DataCardValue11, and DataCardValue12 respectively (underneath 9 which is already working)
How would I amend my line of code to include those having to not be blank as well? I've been racking my brains for a while. When DataCardValue9 is empty the Next button can't be clicked which is great but I need those others as well. I think there should be an AND statement in there but I just can't seem to get it to work. I tried this but didn't work.
If(IsBlank(DataCardValue9.Selected) And IsBlank(DataCardValue10.Selected) And IsBlank(DataCardValue11.Selected) And IsBlank(DataCardValue12.Selected), DisplayMode.Disabled, DisplayMode.Edit)
Any help is much appreciated! Thanks.
Solved! Go to Solution.
Hi @Anonymous ,
use Or instead of And the same formula works seamlessly for you!
Regards,
Krishna
Hi @Anonymous ,
use Or instead of And the same formula works seamlessly for you!
Regards,
Krishna
Thank you!! All these hours trying to troubleshoot and it was me being silly using AND instead of Or.
Confirmed that this works
If(IsBlank(DataCardValue9.Selected) Or IsBlank(DataCardValue10.Selected) Or IsBlank(DataCardValue11.Selected) Or IsBlank(DataCardValue12.Selected), DisplayMode.Disabled, DisplayMode.Edit)
Thank you so much!!
User | Count |
---|---|
253 | |
113 | |
92 | |
48 | |
38 |