Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Clear Selections to reflect on Dropdown menu mashup

Hi, I am building a mashup using a custom template. I have created a drop down select object following the tutorial

Mashup Editor - Create a Bootstrap Drop Down selection menu

The drop down menu looks and works great. I have created a current selections box using

<div id="CurrentSelections" class="qvobjects">

<div class="current-selections-placeholder">

<span>Connect to app to see Selection Toolbar</span>

</div>

</div>

if (app) {

app.getObject('CurrentSelections','CurrentSelections');

$(".current-selections-placeholder span").css("display", "inline-block");

app.clearAll();

$('#qvfilters .dropdown button').html('Select Department <span class="caret"></span>');

}

My mashup looks like this

mashup.PNG

When I clear my selections, the drop down box still holds the value selected. Would anyone be able to advise on how to clear selections on the drop down box.

1 Reply
ErikWetterberg

I would set the button text in the showData callback function. Look in the data, is there a selected value, set that as button value, if not set ''select department' as value.

Erik Wetterberg