OnChange not trigger

0
Onhange not trigger in mendix 9.24.29 when radio button click yes then dropdown fields(Widget: Searchable selector and drop down) visible and selecting vaule at first time not trigger onchange but when go to other page and re select drop down vaule the trigger
asked
1 answers
0

Hi Mahesh,

This is usually related to the widget being hidden initially.


When the radio button changes to Yes, the dropdown/searchable selector becomes visible, but the widget may not be fully initialized yet. As a result, the first selection doesn't trigger the On Change event.


A few things you can try:

  • Refresh the context object after changing the radio button.
  • If possible, use conditional editability instead of conditional visibility.
  • Check whether the widget is inside a Data View or List View that is being refreshed.
  • Also verify if this issue occurs with the standard Dropdown widget or only with the Searchable Selector.


Could you share which Searchable Selector widget you're using (Marketplace link/version) and whether the dropdown is shown using Conditional Visibility or inside a snippet?


Kindly mark this as the accepted answer if it helps.

answered