Hello together,
I downloaded the demo version of LifeCycle Form Designer yesterday and I am pretty excited about this tool. Hopefully, once I have these little snags worked out, we can start using this tool across our company.
In any case, I have a problem with a simple form dependency manipulation via JavaScript. Here it is:
/*
Goal:
Would like the 3 check boxes (check_game1, check_game2, and check_game3)
to be disabled on form load. Once the "activate" (CheckBox1) check
box is checked, the 3 check boxes should be shown/enabled.
Problems:
If I set
check_game1.presence = "invisible";
check_game2.presence = "invisible";
check_game3.presence = "invisible";
on "form:ready", the check boxes aren't shown at all. The
goal of this was to have the game check boxes "disabled"
onLoad. Same as when the "activate" check box isn't checked.
The fillColor doesn't work as I would imagine either. It doesnt fill
the background, but rather the border.
*/
if (CheckBox1.rawValue == 1) {
// If user checks checkbox
check_game1.presence = "visible";
check_game1.fillColor = "255,255,255";
check_game2.presence = "visible";
check_game1.fillColor = "255,255,255";
check_game3.presence = "visible";
check_game1.fillColor = "255,255,255";
} else {
// If user unchecks checkbox
check_game1.presence = "invisible";
check_game1.fillColor = "90,90,90";
check_game2.presence = "invisible";
check_game1.fillColor = "90,90,90";
check_game3.presence = "invisible";
check_game1.fillColor = "90,90,90";
}
Any help with this would be greatly appreciated.
Kevin