Your problem is, that the current attribute value 1 is not contained in the list of available options. Besides that, your code looks a little unconventional. I can’t understand what you try with ‘termSymbols’. This should be a regular attribute name (e.g. ‘gender’)
I’m sorry I just referred example and changed the context of some part so thats why it can be hard to understand.
So in fact there are no options like male and female, but options like:
1.iquals ( = )
So, i tried to get all termSymbols in array with length 10.
and later i would be able to call like termSymbols and it would return "starts with" or something.
And dropdownlist would be generated in loop.
thats why im not able to make variable gender, or in this sitution termSymbol, becouse
I would need lot of them, like $the_fifth_gender = $genders;
This hole component are maint to offer filters to make database queries in browser , like look for users with email that starts with "a" and the second statement is that users have a surname which is igual than "alfonso".