json-schema-form / angular-schema-form

Generate forms from a JSON schema, with AngularJS!
https://json-schema-form.github.io/angular-schema-form
MIT License
2.47k stars 653 forks source link

How to add fields to the schema dynamically #942

Closed Jarzembowski closed 6 years ago

Jarzembowski commented 6 years ago

I'm trying to add fields to the schema dynamically, but it only shows the first one I add. For some reason, the "key" atribute changes from the second element on - maybe that's why only the first is showing.

Unfortunatelly, in this plnkr nothing happens, so I couldn't really recreate the same scenario - but the code is exactly the same.

https://plnkr.co/edit/6uD59yn7fIimTMuu6Qyq

Anthropic commented 6 years ago

@Jarzembowski did you solve this, I missed it as it came in while I was on holiday.

Jarzembowski commented 6 years ago

Yes, I did, thanks for asking. To be honest I dont remember how I did, but it turned out ok.

Anthropic commented 6 years ago

No worries, feel free to comment further if you remember otherwise I will close this for now