How to setSmartSelect – Set some values as selected in the multiselect Dropdown

[Framework7 5.5.3]

I have been trying to set some value as selected in framework7 smartselect element when a page mounted. I tried to use:
var smartSelect = app.smartSelect.get(’.smart-select’);

but getting error in console:
Uncaught TypeError: Cannot read property ‘setValue’ of undefined

I can’t still figure out a proper solution for this. Can anyone help me, please?

call it on “pageAfterIn”

1 Like

Sorry, It was my mistake. It works as expected.

1 Like