Does the 'On Select' action for Combo Boxes and other controls run once when selecting an item in the drop-down or each time you select an item?
Dec 2023 - Clearly everyone seems to be getting different answers, so let me add mine:
OnSelect triggers:
- when I select the control OR
- when I select an item from the available list
OnChange triggers:
- when my page loads (irrespective of whether there was data in it or not)
- when I DELETE an existing data
I did this test with a simply adding a NOTIFY message in both "OnSelect" and "OnChange"
Hi @kbig,
Have you distinguished these two properties?
Actually, the OnSelect triggers every time you select the control.
The OnChange property triggers every time you select an item that differs from your previously selected item.
In addition, I want to remind you that the Text input controls differs from the Combo Box on OnChange property. The OnChange property of the Text input only triggers when you input a completely different strings from your previously input and you should click anywhere outside the Text input control.
Hope it could help you at some degree.
OnChange will fire each time you select or deselect an item.
OnSelect will fire as soon as you click on the control, irrespective of whether you select or deselect anything.
Yes On Change runs each time an item in a dropdown is selected and is the better property to use for Dropdowns. However OnSelect runs every time the control is selected
I think 'On Change' runs for each item that is selected in a dropdown. I think 'On Select' runs once when you select the control.
OnSelect runs each time you select an item
WarrenBelz
146,765
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional