Answers.Body: <p>I had the same problem. I tried to create a custom field (String data type) and checked it as searchable but it didn't appear in Filters tab.</p>
  
  <p>Checking and debugging the code I found the function <code>addCustomDataToColumns()</code> (in <code>/sites/all/modules/civicrm/CRM/report/Form.php</code>) which deals with Custom Fields Data</p>
  
  <p>I noticed that String, StateProvince and Country data type are handled in the same way and this probably makes String data type Field not be visible in Filters tab. See this part of the code of the function mentioned above: </p>
  
  <pre><code>...
  
  switch ($customDAO-&gt;data_type) {
  
  ...
  
  case 'String':
  
  case 'StateProvince':
  
  case 'Country':
  
        $curFilters[$fieldName]['type'] = CRM_Utils_Type::T_STRING;
  
        $options = CRM_Core_PseudoConstant::get('CRM_Core_BAO_CustomField', 'custom_' . $customDAO-&gt;cf_id, array(), 'search');
  
        if ($options !== FALSE) {
  
          $curFilters[$fieldName]['operatorType'] = CRM_Core_BAO_CustomField::isSerialized($customDAO) ? CRM_Report_Form::OP_MULTISELECT_SEPARATOR : CRM_Report_Form::OP_MULTISELECT;
  
          $curFilters[$fieldName]['options'] = $options;
  
        }
  
        break;
  
  ...
  
  }
  
  ...
  </code></pre>
  
  <p>I tried to put some changes in order to handle String data type in this way:</p>
  
  <pre><code>...
  
  switch ($customDAO-&gt;data_type) {
  
  ...
  
  case 'String':
  
          // I-Mod Giovanni Dal Mas 17102018: add new code lines for case 'String'
          $curFilters[$fieldName]['type'] = CRM_Utils_Type::T_STRING;
  
          $curFilters[$fieldName]['operatorType'] = CRM_Report_Form::OP_STRING;
  
          break;
  
          // E-Mod Giovanni Dal Mas 17102018
  
  case 'StateProvince':
  
  case 'Country':
  
  ...
  
  }
  
  ...
  </code></pre>
  
  <p>With these changes, I can see the String data type field in Filters tab</p>
  
  <p>Best Regards</p>
  
  <p>Giovanni</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-22T08:44:20.293Z
Answers.LastActivityDate: 2018-10-22T09:00:51.070Z
Answers.LastEditDate: 2018-10-22T09:00:51.070Z
Answers.UserDisplayName: Giovanni Dal Mas
Body: <p>after upgrading CiviCRM 5.5.1 in the filters of all reports, custom fields (type text) are not visibile. They are only visible only select fields.
  In column tab are instead visibile. And they are visibile in Advanced Search.
  Is it a bug?</p>
  
  <p>Thanks</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-05T10:09:28.100Z
Comments.Text: Did you check if the custom fields are searchable?
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-06T12:26:33.077Z
Comments.Text: Yes, custom fields are searchable.
Comments.UserDisplayName: masetto
Tags: <civireport>
Title: Custom fields of type text not displaying in filter tab of reports (CiviCRM for Drupal 5.5.1)
ThreadText: # Custom fields of type text not displaying in filter tab of reports (CiviCRM for Drupal 5.5.1)
  
  (Asked by: username_0 on 2018-10-05)
  
  after upgrading CiviCRM 5.5.1 in the filters of all reports, custom fields (type text) are not visibile. They are only visible only select fields.
  In column tab are instead visibile. And they are visibile in Advanced Search.
  Is it a bug?
  
  Thanks
  
  **Tags:** civireport
  
  > **Comments:**
  > **username_1**: Did you check if the custom fields are searchable?  
  > **username_0**: Yes, custom fields are searchable.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2018-10-22. Score: 2
  
  I had the same problem. I tried to create a custom field (String data type) and checked it as searchable but it didn't appear in Filters tab.
  
  Checking and debugging the code I found the function `addCustomDataToColumns()` (in `/sites/all/modules/civicrm/CRM/report/Form.php`) which deals with Custom Fields Data
  
  I noticed that String, StateProvince and Country data type are handled in the same way and this probably makes String data type Field not be visible in Filters tab. See this part of the code of the function mentioned above:
  
  ```
  ...
  
  switch ($customDAO->data_type) {
  
  ...
  
  case 'String':
  
  case 'StateProvince':
  
  case 'Country':
  
        $curFilters[$fieldName]['type'] = CRM_Utils_Type::T_STRING;
  
        $options = CRM_Core_PseudoConstant::get('CRM_Core_BAO_CustomField', 'custom_' . $customDAO->cf_id, array(), 'search');
  
        if ($options !== FALSE) {
  
          $curFilters[$fieldName]['operatorType'] = CRM_Core_BAO_CustomField::isSerialized($customDAO) ? CRM_Report_Form::OP_MULTISELECT_SEPARATOR : CRM_Report_Form::OP_MULTISELECT;
  
          $curFilters[$fieldName]['options'] = $options;
  
        }
  
        break;
  
  ...
  
  }
  
  ...
  
  ```
  
  I tried to put some changes in order to handle String data type in this way:
  
  ```
  ...
  
  switch ($customDAO->data_type) {
  
  ...
  
  case 'String':
  
          // I-Mod username_2 17102018: add new code lines for case 'String'
          $curFilters[$fieldName]['type'] = CRM_Utils_Type::T_STRING;
  
          $curFilters[$fieldName]['operatorType'] = CRM_Report_Form::OP_STRING;
  
          break;
  
          // E-Mod username_2 17102018
  
  case 'StateProvince':
  
  case 'Country':
  
  ...
  
  }
  
  ...
  
  ```
  
  With these changes, I can see the String data type field in Filters tab
  
  Best Regards
  
  username_2
  
  
  ---
  
  