Hi
i have my webix code like below
webix.ui({
view:"window",
id:"moviewin",
height:300,
width:700,
modal:true,
position:"center",
head:"Movie data",
hidden: false,
body:{
view:"form",id:"movieform",width:600, scroll: true,
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(){
}},
{view:"button",
label:"Add",
click:function(){
$$("movieform").addView({
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"
},
{view:"icon", icon:"wxi-trash",click:function(){
let toRemove = this.getParentView();
this.getParentView().getParentView().removeView(toRemove)
}},
]}, 0);
}},
]
}
],
}
});
If the user selects the movie name in the combo . And clicks on the add button
if again for the combo in the row 2 if the user selects the movie name again.
i need to display a pop-up saying duplicate values selected.
How can i do that?