139
Views
2
Comments
Solved
Dropdown in menu onchange event for selected screens only
Application Type
Reactive

Hi,
We've got a dropdown in the menu web block, which, onChange, updates screen data via an event handler on every page.
However, what bothers me is that this SelectedValue is not relevant for all pages (for example our static homepage). But the menu IS implemented on all pages, so as a consequence, every page needs an event handler for the event thrown by the menu block's DropdownOnChange.

Is this just an inconveniance when using events, and should it be accepted as such? (With the pointless HandleMenuDropdown client actions on pages where said value is irrelevant)
Or, is there an alternative way handle the dropdown's onchange event only on a selection of screens?

2020-09-01 10-42-42
Stefano Valente
Solution

You can set an event mandatory or not. If you select No, then its not necessary to implement the eventhandler.

2023-01-25 11-50-23
Gwen Jamroziak

Aha! I didn't know that.
It's indeed the missing part I was looking for, thanks Stefano!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.