I am able to change the visibility of forms by setting the variable of Visible to true when an item is selected with my combo box, but I want to set it back to false when I deselect the item (its a single select combo box). I have this in the OnChange property:
Worked perfectly thank you!
Hi PatrickMcLeanGL
Here is the code to set the variable:
Set(aVis,CountRows(ComboBox1.SelectedItems)>0)
Hi @PatrickMcLeanGL ,
That code looks correct for the OnChange property, but that will only fire when the selected item changes, not when the selection is cleared. Try keeping your code on the OnChange property, but add this to the OnSelect property of the control that clears the selection to reset the visibility variable:
OnSelect:
Set(aVis, false);
Reset(ReturningVisitorsBox)
------------------------------------------------------------------------------------------------------------------------------
If I answered your question, please accept my post as a solution and if you liked my response, please give it a thumbs up.
Thanks!
WarrenBelz
146,609
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,946
Most Valuable Professional