Form add new Controls on button click

How can I achieve this?
{ id: “name”,
type: “input”,
label: “Name”,
icon: “dxi-magnify”,
placeholder: “John Doe” });
doesnt work.

Unfortunately currently the only solution is to create a nrew config for your form using the setConfig() method:

I am also looking for the same, In previous version using “addItem” we can add controls to the form. Is there any way to add new items in the form?

Currently the only solution is to use the setConfig() method.
We’re planning to extend the form API in the future releases and add the possibility to change the for melements dynamically