getValues() should return Array for Dynamic Form Elements

Hi,
I have a requirement to get a form on a click inside a form. http://webix.com/snippet/7d9826f8 . Now the problem is, when I add multiple views of a form, it only adds the values of last added form in JSON. But I need the result in an array for additionalPortalUserAccounts(nested form).

Can you please make it work like the following output?

{
“customerDetails”:{
“customerDetails”:{
“firstName”:“afraz”,
“customerType”:“Permanent”,
email":"afraz.shhid@gmail.com”,
“Business”:“teliteck”,
“LastName”:“shahid”,
“phone”:“0345358121”
},
“portalAccess”:{
“userName”:“MAA”,
“passWord”:“123456”
},
“additionalInfo”:{
“referredBy”:“852963”,
“accountPIn”:“123.456.12.3”},
“additionalPortalUserAccounts”:[
{“userName”:“ysf”,
“passWord”:“123456”,
“accountPIn”:“123.45.6.12”,
email":"ysf@gmail.com”,
“firstName”:“ysf”,
“LastName”:“youssef”},
{“userName”:“ayb”,
“passWord”:“741852”,
“accountPIn”:“124.55.12.41”,
email":"ayb.teliteck@gmail.com”,
“firstName”:“ayb”,
“LastName”:“ayoub”}
]
}}

If some body can please help me on this?

Hello,

the names are the same for the form elements and they should be different. Please check the following snippet:

http://webix.com/snippet/424175cf