Expand my Community achievements bar.

Javascript / Formcalc doubt !!

Avatar

Former Community Member
There is one interactive, Dynamic PDF, which takes XML data as its input.

Subforms is increased depending upon the data in XML.

How can we get, how many subforms are there using Javascript/Formcalc.



Thank you for your time & awaiting a reply !!!
2 Replies

Avatar

Former Community Member
From what Ive read, you can use 'count' in order to determine the number of subform instances..



I was actually at the moment trying to write a script in order to give a number / counter to each of my rows in a dynamic table & stumbled upon the 'count' property .. not that it worked.. but maybe you can work it out .. (If you manage, please let me/us know!)



I've seen two cases:



instanceManager.count; &

... table.Row1.count;

Avatar

Level 6
This always works for me.



var nNumberOfSubs = mySub.all.length;



Jared Langdon

http://www.jlangdon.ca