Toolbox plugin - collection of utility elements

I figured it out… without actually referencing the drop down the expression wouldn’t reevaluate every time the dropdown changed. So I made a dummy function that took the dropdown as a dynamic input and then generated the index by direct attribute selection.

function get_index_of_dropdown(dropdown_value) {
    return document.getElementById("kitchen_oioio").selectedIndex;
}

get_index_of_dropdown("Dropdown Test Time 's value");

See:
image

Feelin’ good!

3 Likes