So I've made visible conditions based on a dropdown selected value before, but I've never done a condition that involves a custom dropdown with values from a collection. The formula seems to be different, but I can't quite figure it out.
Collection is Roles with values View All, Administration, and Information.
I was trying to have a field visible only when View All is selected in the dropdown. This is the formula that I'm used to using:
If(Dropdown1.Selected.Value = "condition1", true, false)
But it seems to want to change it to If( Dropdown1.SelectedText = "condition1", true, false); however, it throws an error at the = and says invalid formula. Can anyone help me out with this?
Solved! Go to Solution.
SelectedText is a deprecated property! It would be nice if they removed it from the options that show up.
Anyway, your formula for the Visible property should simply be:
Dropdown1.Selected.Value = "condition1"
Or in your specific case:
Dropdown1.Selected.Value = "View All"
However, the specific use of .Value designates the column name of the table that is your Items property of the dropdown. So, if you are still encountering an issue, please provide the Items property of Dropdown1.
I hope this is helpful for you.
SelectedText is a deprecated property! It would be nice if they removed it from the options that show up.
Anyway, your formula for the Visible property should simply be:
Dropdown1.Selected.Value = "condition1"
Or in your specific case:
Dropdown1.Selected.Value = "View All"
However, the specific use of .Value designates the column name of the table that is your Items property of the dropdown. So, if you are still encountering an issue, please provide the Items property of Dropdown1.
I hope this is helpful for you.
Thank you for taking the time to assist me with this. I did try that earlier and still got the invalid formula error.
The Items property for my dropdown is Items = Roles.Name
That stemming from the OnStart property of ClearCollect(Roles, {Name:"View All"}, {Name:"Administration"}, {Name:"Information"});
Edit: Nevermind I did figure it out. I had to swap Value for Name. Your explanation about .Value designating the column is what clued me in. Thank you!
User | Count |
---|---|
256 | |
106 | |
85 | |
51 | |
43 |