Here's a temporary solution (or maybe semi-permanent)...
Scenario:
You want to search on a TickBox - or Check Box - . You want to get results based on whether or not the record has one of the boxes checked or not. Problem is that if you leave the box unchecked, the search returns ALL records.
Temporary Solution:
1. Open up the SearchForm.html file in the /sugarCRM/modules/MODULENAME folder.
2. Find the HTML code that draws the checkbox. It will look something like this:
Code:
<input name='db_fieldname' class="checkbox" type="checkbox" tabindex='1' {DB_FIELDNAME}> 3. REMOVE the class modifier and CHANGE the type to "text", so that it resembles something like this:
Code:
<input name='db_fieldname' type="text" tabindex='1' {DB_FIELDNAME}> 4. Upload the modified SearchForm.html to the appropriate directory on your server.
5. When you go to do your search, what was once a 'TickBox', or Check Box, is now a text area.
6. Enter the word 'off' to search for unchecked (or 'unTicked') records, enter the word 'on' to search for checked (or 'Ticked') records.
Note, I don't know if it's 'off' and 'on' for non-english versions of sugarCRM, so...
-If you export your data to a .csv file with a header row, you will see what words are used in your TickBox column.
Good luck.
Bookmarks