Hi @bbsin,
Could you please tell me that what do you mean by grey out card 1 and 2, disable the card to restrict input or make them invisible?
I am confused that you want to assign the "0" to the card2 and make it invisible at the same time which makes no sense, so please provide more details
If you want to make both of the cards invisible based on the Dropdown selected, please try as below.
Set the Visible property of the card 1 and card 2 as below:
If(Dropdown4.Selected.Value="A" ||Dropdown4.Selected.Value="B",false,true)
Note that you should use the operator ||(Or) rather than the &&(And).
If you want to assign the "0" to the card 2 and just make them disabled to input, please try as below.
1). Set the Default property of the Textinput control within the card 2 as below:
If(Dropdown4.Selected.Value="A" ||Dropdown4.Selected.Value="B","0",ThisItem.Code)
2). Set the DisplayMode property of the card 1 and card 2 as below:
If(Dropdown4.Selected.Value="A" ||Dropdown4.Selected.Value="B",Disabled,Edit)
Check if this could help you.
Regards,
Qi