I have a form in ExtJS, with 2 dropdown boxes with a list of languages. They both have the same values, that are loaded from a database table via a JSON datastore.
Its a “From” language and a “To” language.
Now what i want to do is to filter out the language from “From” dropdown in the “To” dropdown, to be sure that same language is not chosen in both dropdowns.
Hope this makes sense 🙂
/Sune
So use the filterBy function instead, and define your own function that will return true for every record besides that specific one:
Substitute the appropriate code to get the value selected in the from combo.