Hey guys, I'm not sure why I have such difficulty with these!
I'm trying to set the display mode on a button to the following rule(s):
If ComboBox1_7 is "Yes" & these additional fields are blank, Disabled until the fields are not blank, then Edit.
If ComboBox1_7 is "No", Edit.
ComboBox1_7 is blank, Disabled.
I wrote the below which works, sort of, aside from the extra fields being blank!
If(ComboBox1_7.Selected.Value="Yes"&&IsBlank(DataCardValue18_2)&&IsBlank(DataCardValue19_2)&&IsBlank(DataCardValue9_2)
||IsBlank(DataCardValue12_2),
DisplayMode.Disabled,Edit)
Any help is appreciated 🙂
Solved! Go to Solution.
Hi @Lauren_ ,
Assuming Yes, No and Blank are the only three possibilities for the combo box choices and all those other fields need to be completed if a Yes answer
If(
ComboBox1_7.Selected.Value="No" ||
(
ComboBox1_7.Selected.Value="Yes" &&
!IsBlank(DataCardValue18_2) &&
!IsBlank(DataCardValue19_2) &&
!IsBlank(DataCardValue9_2) &&
!IsBlank(DataCardValue12_2)
),
DisplayMode.Edit
DisplayMode.Disabled
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Hi @Lauren_ ,
Assuming Yes, No and Blank are the only three possibilities for the combo box choices and all those other fields need to be completed if a Yes answer
If(
ComboBox1_7.Selected.Value="No" ||
(
ComboBox1_7.Selected.Value="Yes" &&
!IsBlank(DataCardValue18_2) &&
!IsBlank(DataCardValue19_2) &&
!IsBlank(DataCardValue9_2) &&
!IsBlank(DataCardValue12_2)
),
DisplayMode.Edit
DisplayMode.Disabled
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Spot on, thank you WarrenBelz!
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
245 | |
122 | |
84 | |
83 | |
67 |