Hi @nagestiada ,
I am still a little confused here with your requirements as compared with your code. Firstly, this code
If(
DataCardValue17.Text="" ||
IsBlank(DataCardValue16.Selected.Value) ||
IsBlank(DataCardValue21.Selected.Value) ||
DataCardValue16.Selected.Value="Other" &&
DataCardValue18.Text="" ||
DataCardValue21.Selected.Value="Yes" &&
DataCardValue6.Text="" &&
DataCardValue7.Text="",
UpdateContext({ValidationLabel:true}),
UpdateContext({Popup:true})
)
needs some brackets around the and/or groups are you trying to do something like
If(
(
DataCardValue17.Text="" ||
IsBlank(DataCardValue16.Selected.Value) ||
IsBlank(DataCardValue21.Selected.Value) ||
DataCardValue16.Selected.Value="Other"
)&&
(
DataCardValue18.Text="" ||
DataCardValue21.Selected.Value="Yes"
)&&
DataCardValue6.Text="" &&
DataCardValue7.Text="",
UpdateContext({ValidationLabel:true}),
UpdateContext({Popup:true})
)
or this
If(
DataCardValue17.Text="" ||
IsBlank(DataCardValue16.Selected.Value) ||
IsBlank(DataCardValue21.Selected.Value) ||
( DataCardValue16.Selected.Value="Other" &&
DataCardValue18.Text=""
) ||
(
DataCardValue21.Selected.Value="Yes" &&
DataCardValue6.Text="" &&
DataCardValue7.Text=""
),
UpdateContext({ValidationLabel:true}),
UpdateContext({Popup:true})
)
As well, you are setting a context Variable called ValidationLabel (this should not be the same name as you label) to true, so how does this relate to the Visible property of your label (what is the Visible property of this)?.
Lastly how does the code you supplied in the first post relate to what you are doing (when is is on the Visible property of those controls)? Am I missing something here?