Hi Smacdonald,
I created the the custom xtype as below
this.allowField = new CQ.form.Selection({
type:"select",
cls:"ejst-customwidget-1",
options:'/bin/dynamicdialog/options.json',
listeners: {
selectionchanged: {
scope:this,
fn: this.updateHidden,
The options are loaded from the json....
Now in the dialog it shows all the values in the options.
When i keep adding the elements by clicking the "add item". on each load the the values that are already added should not be listed in the dropdown.
How to acieve the below function.... is it possible through "listeners" and how?
initially i have "cat, rat, dog" ..... after selecting cat and clicking the additem.... it should populate only "rat, dog" in my dropdown and not the "cat"