PDA

View Full Version : Query a form for fields by excluding one field



tsuryap
1 Oct 2015, 3:31 AM
Hi I have a form where I am querying for fields which matches a value. form.query('field[value*=test]');The query is returning all the fields which have that value . While querying i want to exclude one field so that even the value matches it should no be fetched . how to do that please help me.

jdkhamba
1 Oct 2015, 8:24 AM
You can simply add a cls config to the form field you are trying to exclude and then use the not operator (!=) . Take a look at the following example:

https://fiddle.sencha.com/#fiddle/up3

tsuryap
5 Oct 2015, 1:10 AM
Thankyou.. it is working fine