I have a repeater that displays data (cost) after users use drop downs to search/filter through my data set. Is it possible to have another drop down that would act as a multiplier to that cost shown in the repeater. If so what do I need to add to this code below.
Current Code that searches/filters.
import wixData from ‘wix-data’ ;
$w.onReady( function () {
});
export async function button1_click(event, $w) {
$w( ‘#dataset1’ ).setFilter(wixData.filter()
.eq( “sex” , $w( ‘#dropdown1’ ).value)
.contains( “age” , $w( ‘#dropdown2’ ).value)
.contains( “ethnicity” , $w( ‘#dropdown3’ ).value)
.contains( “service” , $w( ‘#dropdown4’ ).value)
)
.then(() => {
console.log( “Dataset is now filtered” );
}) . catch ((err) => {
console.log(err);
});
$w( ‘#table2’ ).expand();
}