I have a form that starts out with one page. This page has checkboxes to make other pages (subforms) change from hidden to visible. This all works correctly. The subform I want to turn is a repeatable subform with a checkbox to add instance. This works correctly if the subform is originally visible, but when I make it originally hidden and turn it on, nothing happens when I click the add Instance checkbox.
Here's the code on the original checkbox to turn the subform on (on the change event)
if (this.rawValue == 1) {
Form.sf5.presence = "visible"
}
else if (this.rawValue == 0) {
Form.sf5.presence = "hidden"
}
And here's what I currently have on the click event of the subform checkbox
if (this.rawValue == 1) {
Form._sf5.addInstance(1)
}
else if (this.rawValue == 0) {
Form._sf5.removeInstance(1)
}
Any ideas/suggestions would be appreciated - Thanks!
I fixed this my placing the Radio Buttons within the same (subform cell) as the "SheetSize" subform and "RollSize" subform.
I'm not sure about your code (i'm a beginner at code)..... but that's how i fixed my challenge with repeating tables that contained hidden subforms.