I have developed a widget that takes a dimension and shows all the associated year values in a lui-select list. I have also linked this up to a function that filters the year field. Elsewhere I apply a default filter using app.field.selectMatch Which is triggered on load. However, the widget does not show the default value as being selected. Can anyone tell me how I can programaticaly show the selected value?
I tried using $('#widget').val('defaultyear'); but this didnt work.
Thanks for responding. I have looked at your example, but it seems as though it reads the selected value but does not mark the value as selected within the control so that it appears at the top of the list as it would if I manually selected a value from the list. It is this latter step that I am asking about.