Take a look onto this very simple examples…
https://russian-dima.wixsite.com/meinewebsite/website-navigation
This could be, what you are searching for…
var myButtonLabel
var myDataset = "PlaceHereTheIDofYourDataset"
$w.onReady(()=>{
$w('#myDropdown1').onChange(()=>{
myButtonLabel = myButtonLabel+$w('#myDropdown1').value
console.log(myButtonLabel)
$w('#myButton').label = myButtonLabel
$w('#myButton').link = $w(myDataset).getCurrentItem().XXX
})
$w('#myDropdown2').onChange(()=>{
myButtonLabel = myButtonLabel+$w('#myDropdown2').value
console.log(myButtonLabel)
$w('#myButton').label = myButtonLabel
$w('#myButton').link = $w(myDataset).getCurrentItem().XXX
})
$w('#myDropdown3').onChange(()=>{
myButtonLabel = myButtonLabel+$w('#myDropdown3').value
console.log(myButtonLabel)
$w('#myButton').label = myButtonLabel
$w('#myButton').link = $w(myDataset).getCurrentItem().XXX
})
})
How it works?
-on every changement of one of the dropdowns, the label of your BUTTON changes, corresponding to the VALUE of the selected DropDown. And also “button-LINK” can be changed and connected to the button this way.
Good luck and happy coding.
![]()