Inverse Searching

I’ve modified the SearchForm2 file along with overriding the default search templates for the multienum and enum SugarFields (using /custom) to allow for inverse searching. For text fields, you start your search with ! it’ll do “not like” or “!=” in the query. For enums and multienums, I’ve added a checkbox below labeled “Invert” and, when checked will return results that are not selected options. I think this capability is pretty important for searching and can provide my code for future releases. The only problem I’m having is the Invert checkbox doesn’t stay checked when the search results load so someone with more understanding of the systems involved with that would need to take a look at it.