385
Views
2
Comments
Clear DropdownSearch's selection Reactive
Question

Is there an easy way to clear the Selection in the OutSystemsUI Interaction\DropdownSearch widget?

Looking at the JavaScript library it runs on, Choices.js, there is a function that clears it, but I don't think there is any way to access the JavaScript object without rewriting the widget. 

If I clear the List it will delete the selection, but the list doesn't actually need to change, and if I clear and replace the list in the same action it does not clear it.

Thanks!

Jordan

Hi Jordan,

Look if I understood your question...


If you to click in the "Select an item" it's will clear de SelectedItem variable


Another way is assign an empty text to the SelectedItem variable attibutes in the OnSelect event.

Regards,

Leandro.

Using JS you can try the function DropdownClear by passing the widget Id:

$actions.DropdownClear($parameters.DropDownId)

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