Hi Kyle
The next thing I had needed to do is display the name field pre-selected to be "contains any of". I didn't see an option in the administration? So I re-wrote my code.
[code:1]// Hide the Search Criteria part and Results title:
. "\n $('#cbUserListsSearcher').hide();"
// Set the value for the name search field
. "\n $('#cbfr_41 select').val('any');"
// Hide all the fields that do not have a value selected
. "\n $('.cbUserListSearchFields select').each(function () {"
. "\n $(this).click();"
. "\n });"[/code:1]
Basically, I set the value for the chosen field, and then called the cbsearchkrit function via the click method.
But to do that I had to move the php variable (which holds that JS function) $searchTabJs up above the $jsSearch variable. Otherwise cbsearchkrit wasn't yet assigned to the click event.
You said that the original issue was fixed in the next version of CB, so hopefully this code isn't needed, but by moving the code around it should allow a bit more future-proofing, for when you do allow search criteria pre-selection in user lists
I'm off to submit another bug, hopefully the forum is the right way as I couldn't find any other way of submitting them.
--- Ben