Dynamically adding the dropdown and textbox

Hi,

I have my webix code like below.

window.webix.ui({

                            view:"window",

                            id:"moviewin",

                            height:200,

                            width:700,

                            modal:true,

                            position:"center",

                            head:"Movie data",

                            hidden: true,

                            body:{

                              view:"form",id:"movieform",width:600,

                              elements:[

                                {

                                      view: "layout",

                                      cols:[

                                       {view:"combo",id:"moviedata",label:"Fields",

                                       options:[

                                        {id:"movie",value:"Movie Name",type:"string"},

                                        { id:"movieplace",  value:"Movie Place", type:"string" },

                                        { id:"year", alue:"year", type:"string" },

                                       ],

                                       },

                                        {view:"text",label:"Value"},

                                      ]

                                },

                                {

cols :[

                                {view:"button",label:"Movie Data",click:function(){

                                }},

                                {view:"button", label:"Reset",click:function(){

                                 }},

                                {view:"button", label:"Cancel",click:function(){

                                 }},

                                ]

                                }

                              ],

                            }

                          });


Now i wanted to have a small link called Add Data below and when i click on that,
The above combo and textbox should be added dynamically

Some thing like add group functionality in the querybuilder
https://docs.webix.com/desktop__query_builder.html#apireference

How can i do that?

Pls help

Hello,

You can do this using the addView method.
Please check the sample: https://snippet.webix.com/yy7ftwjr