а

Form add new Controls on button click


#1

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


#2

Unfortunately currently the only solution is to create a nrew config for your form using the setConfig() method:
https://docs.dhtmlx.com/suite/form__api__form_setconfig_method.html


#3

HI,
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?


#4

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