I have a datacardvalue in a Power Apps modern form, and I need to create a conditional statement for its Items property. The condition should be based on the selected value from a DataCardValue, and at the same time, it should concatenate results from two columns in the database.
try:
Hi!
The code you've provided looks pretty good, but I'm guessing it's not working as expected, or throwing an error?
Could you potentially provide a few more details so we can narrow down the issue some more?
The only thing I can see from the code above, is that this most likely doesn't match the items property of your dropdown. This will definitely cause some issues, so you'll have to confirm that the items property will contain the values you try to pass in as default.
Let me know! 🙂
hey @xFelipeDuartee
can u try this:
If(
DataCardValue9.Selected.Value = "VALE",
ForAll(
Choices([@CentroCustosRNV].CodigoSintetico),
Value & " - " & Title
),
ForAll(
Choices([@CentroCustosIAV].CodigoSintetico),
Value & " - " & Title
)
)
Let me know if my answer helped solving your issue.
If it did please accept as solution and give it a thumbs up so we can help others in the community.
Greetings
WarrenBelz
146,605
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,946
Most Valuable Professional