Мария Григорьева wrote:
var form = new Form("forms/components.xml");
var formMap = form.asMap();
var repeater = formMap.get("test");
form.showForm("viewform-component-template.html");
I need to know the size of formMap. How can I get it?
>
Trying:
var repeater_length = formMap.get(“test”).getSize(); - it doesn’t work
What should I do to get this size?
I'm assuming you're actually trying to get the size of the repeater
widget, rather than the size of the formMap.
I'm not familiar with form.asMap (I don't see it in the Form.js API, is
it an add-on?), so I'd suggest using the normal API to get the repeater
widget.
var repeater = form.lookupWidget('test');
var repeater_length = repeater.getSize();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]