Greetings!
Here is a description of my situation:
Any help would be appreciated.
Thank you.
Views
Replies
Total Likes
All you need to do is get how many instances of Field2 there is... this.resolveNode("YourSubform").instanceManager.count... it's easier using rows for that
Views
Replies
Total Likes
Thank you for that. How do I make it so it counts only instances that actually contain metadata? I need to make sure it doesn't count any Field 2 that is accidentially left blank.
Views
Replies
Total Likes
Make a var that counts how many fields are not blank;
var intCountMetaData = 0;
for (var i = 0; i < this.resolveNode("YourSubform").instanceManager.count - 1; i++){
if (this.resolveNode("YourSubForm[" + i.toString() + "].Field2").rawValue != null){
intCountMetaData += 1;
}
}
Views
Replies
Total Likes
I couldn't get this to work. I get a syntax error. I'm using FormCalc on my calculate event for Field 3 though.
Views
Replies
Total Likes