Hello… by Developer Console come a Error :
TypeError: button1_click.disable is not a function
import wixLocation from ‘wix-location’ ;
let link;
function checkcheckboxes() {
// add an if statement
// .checked sees if its true or false.
//you can also do checkbox1.checked === true
if (checkbox1_change.checked || checkbox2_change.checked || checkbox3_change.checked){
//add what to do if 1 of those checkboxes is checked
button1_click.enable()
//you can also use .expand()
} else {
//add what to do if none is selected
button1_click.disable()
//you can also use .collapse()
}
}
export function checkbox1_change(event) {
link=$w( “#checkbox1” ).value
checkcheckboxes()
}
export function checkbox2_change(event) {
link=$w( “#checkbox2” ).value
checkcheckboxes()
}
export function checkbox3_change(event) {
link=$w( “#checkbox3” ).value
checkcheckboxes()
}
export function button1_click(event) {
wixLocation.to( “https://www.elopage.com/” +link)
}
//
let link2;
export function checkbox4_change(event) {
link2=$w( “#checkbox4” ).value
}
export function checkbox5_change(event) {
link2=$w( “#checkbox5” ).value
}
export function checkbox6_change_1(event) {
link2=$w( “#checkbox6” ).value
}
export function button2_click(event) {
wixLocation.to( “https://www.elopage.com/” +link2)
}
//
let link3;
export function checkbox9_change(event) {
link3=$w( “#checkbox9” ).value
}
export function checkbox8_change(event) {
link3=$w( “#checkbox8” ).value
}
export function checkbox7_change(event) {
link3=$w( “#checkbox7” ).value
}
export function button3_click(event) {
wixLocation.to( “https://www.elopage.com/” +link3)
}
//
let link4;
export function checkbox10_change(event) {
link3=$w( “#checkbox10” ).value
}
export function checkbox11_change(event) {
link3=$w( “#checkbox11” ).value
}
export function checkbox12_change(event) {
link3=$w( “#checkbox12” ).value
}
export function button4_click(event) {
wixLocation.to( “https://www.elopage.com/” +link4)
}
$w.onReady( function () {
});