Getting Java Script Debugger message: "_form1 is not defined..."
I've used the script:
if
(_form1.AdultProgramSubform.count > 0)
{
form1.AdultProgramSubform.occur.max
+= 1;
_form1.AdultProgramSubform.addInstance(
true);
}
to repeat a subform when a checkbox is clicked. This has worked before to make subforms visible.
Any ideas why I'm getting this message?
Views
Replies
Total Likes
You need following code in place.............I tried and it works.
if (_AdultProgramSubform.count > 0)
{
form1.AdultProgramSubform.occur.max += 1;
_AdultProgramSubform.addInstance(true);
}
Hi, Varma. Thanks for helping! What object & event did you apply the script to?
Randee
Views
Replies
Total Likes
Varma,
Sorry I was so dense. I replace my code with yours, and it working fine. Thanks so much!
Randee
Views
Replies
Total Likes
Varma, I've found that the code you sent me is only working if the adult program subform is visible. However, it needs to be hidden in my form. I've read another discussion where someone else had this problem. Do you mind working further with me on this form?
Randee
Views
Replies
Total Likes