OammieR
OammieR

Reputation: 2850

How to disable validation on dijit.form.FilteringSelect?

My FilteringSelect have to set required: true but can accept any text.

The problem is when the text not match in store, the error will appear.

How can I avoid that error?

Note : This code is working well but its disable required's validator too.

this.myFilteringSelect.validate = function () {
    //NoAction
};

Upvotes: 1

Views: 2995

Answers (1)

Craig Swing
Craig Swing

Reputation: 8162

You should use a dijit/form/ComboBox to get the desired behavior.

http://jsfiddle.net/cswing/ESwpr/

Upvotes: 2

Related Questions