Hello all!
I am having some trouble connecting my checkbox to a dataset within a repeater.
Basically, when you click a checkbox (or multiple) I want the corresponding title of the checkbox to match the type heading when the repeater expands.
I have attached my current code and images for reference. Been trying for days and getting nowhere
Thanks in advance!!!
https://petegregory95.wixsite.com/website-1
$w.onReady(function () {
$w("#checkbox1").onClick( (event) => {
if ($w("#checkbox1").checked===true) {
$w('#repeater1').expand()
}
else
{
$w('#repeater1').collapse()
}
} );
$w("#checkbox2").onClick( (event) => {
if ($w("#checkbox2").checked===true) {
$w('#repeater1').expand()
}
else
{
$w('#repeater1').collapse()
}
} );
$w("#checkbox3").onClick( (event) => {
if ($w("#checkbox3").checked===true) {
$w('#repeater1').expand()
}
else
{
$w('#repeater1').collapse()
}
} );
} );