Expand my Community achievements bar.

Error - Subform doesn't have a default property

Avatar

Former Community Member
I have a script which is tied to a button click event -



Form._subForm.addInstance(1);



During run time the script works as expected, but it also throws an error:



Error: Invalid property get operation; subform doesn't have a default property.



Does anyone know what's causing this issue and how I can fix it?



I've compared the properties of this form with another that works fine and couldn't find any differences between the two.



thanks in advance for your help!
2 Replies

Avatar

Former Community Member
It is probably would be easier to look at the form and figure out what is wrong. If you want me to look at it, you can email to jpham@pacbell.net .

Avatar

Former Community Member
Hi jimmypham,



Thanks for the offer, but I just figured it out.



In the script editor I had the language set incorrectly to Form Calc rather than JavaScript. The form worked just fine once I switched the language over to JavaScript.



It would be nice if Designer would catch user errors like that.



thanks again...

Mike