Home
TeamSite
TeamSite, LiveSite and OpenDeploy
Need help creating simple Select All checkbox
System
I have an incredibly simple task for a DCT form and just can't see why this is not working.
The script is very basic. It is triggered via an init script whenever any checkbox has a state change.
function fnHandleCarType(item) {
var arOptions = item.getOptions();
for (i=0; i<arOptions.length; i++) {
if (arOptions
.value == "all") {
if (arOptions
.selected) {
var changeState = true;
}
}
if (changeState) {
arOptions
.selected=true;
}
}
}
I've used alerts to try to figure out why this doesn't work. And, all I can see right now is that the arOptions
.selected change from true/false just doesn't ever happen on the form. I know I must be missing something incredibly obvious but I just don't see it.
I'm using TeamSite 6.7.2.0.
Thank you for any help on this.
Stefanie
Find more posts tagged with
Comments
There are no comments yet