Hello, I am new to writing code in Corvid. I currently have 4 drop downs that search through a collection and show the cost in a repeater. What I would like to do is add a drop down and if selected and then searched that new drop down selection is linked to a multiplier. Which will multiply that cost and show it in the repeater.
This is my current code that works great. Just don't know where to start to add that 5th drop down that is linked to a multiplier.
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("size", $w('#dropdown3').value) .contains("weight", $w('#dropdown4').value) ) .then(() => { console.log("Dataset is now filtered"); }) .catch((err) => { console.log(err); }); $w('#table2').expand(); }
Any help would be greatly appreciated. Thank you