Hi,
I can't get all the functions of my drop down to work as they should all at the same time. If I add them separately, they will work or I can get two functions to work, but then something else stops working. Basically, I have two drop downs and a button. When the dropdown1 changes to "Option2", dropdown2 should change to "Option2". Also, when the button pressed, dropdown2 should change to "Option2". Here is my code set in the Default property of dropdown 2:
If(dropdown1.Selected.Value = "Offboard Resource", "Off-Board", "On-Board") ||
If(button.Pressed = true, "Off-Board", "On-Board")
This formula isn't actually working right now. I have run through so many different ways of writing this that I can't remember what worked at this point. I also have this code in dropdown1's OnChange property, which doesn't seem to be doing anything either:
If(dropdown1.Selected.Value = "Offboard Resource", dropdown2.Selected.Value = "Off-Board", "On-Board")
For the button's OnSelect property, I have this:
If(button.Pressed = true, dropdown2.Selected.Value = "Off-Board", "On-Board")
I have tried using &, &&, a comma, a semi-colon, getting rid of parenthesis and using a comma for the If statements in dropdown2's Default property and either one statement will work and the other won't or both will work, but won't change the option automatically back to "On-Board". I have gotten both to work ONLY when I don't add the else "On-board" in there. It doesn't make any sense to me why it is all working together, but it's not. If anyone can give me anything to try, I would be grateful. Let me know if you need any more information.