07.02.2023, 09:13
Try this custom JS. Range is 6/7/1 to 6/7/50. If you need to invert the state the change var hide = !obj.value; to var hide = !!obj.value;
Code:
$(function(){
if (!window.grp) {
return;
}
function showhide(i) {
var src = '6/6/' + i;
var dst = '6/7/' + i;
grp.listen(src, function(obj) {
var hide = !obj.value;
$('[data-object="' + dst + '"]').toggleClass('hide', hide);
});
}
for (var i = 1; i <= 50; i++) {
showhide(i);
}
});