So I'm trying to have certain datacards for text entry visible depending on what is selected in a multiple selection drop down.
So the multiple choice selection lets people choose as many of the following devices: chromebook, iphone, mifi, usb, jetpack mifi
And depending on what all they select, I'm trying to get certain other datacards to be visible. So if they select chromebook then serial number is visible. If iphone or mifi are selected then hotspot number is visible. If chromebook and a mifi are selected then serial number AND hotspot are visible.
Right now, I can only get them visible if one thing is selected. As soon as I add second choice, they all disappear.
Any tips?
Solved! Go to Solution.
I figured it out. We need "Value" at the end of the formula
"iPhone 7s" in DataCardValue31.SelectedItems.Value
Your code in the Visible property of the datacards probably looks like this
Dropdown1.Selected.Value = "chromebook"
Instead you should do something like this
"chromebook" in Dropdown1.SelectedItems
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
Awesome! Thank you so much. I had no idea that was the forumla structure for this.
Yeah, its a little different when you are targeting a mutli-select field. In this case you want to check if there is a value in the set of multi-selected options rather than equals.
I figured it out. We need "Value" at the end of the formula
"iPhone 7s" in DataCardValue31.SelectedItems.Value
There must be something different about your situation... I am curious as to why.
When I tested the solution I put this code in the Combobox Items property
["chromebook","usb","mifi"]
Then when I put this code in the Text property of a label it shows true.
"chromebook" in Combobox1.SelectedItems
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."