title: Search Boolean Field in Boostrap-Table
body: <p>I use <a href="http://bootstrap-table.wenzhixin.net.cn/" rel="nofollow noreferrer">Bootstrap-Table</a> to create my table on my <code>Spring</code> WebApp.</p>
  
  <p>I have a question about search filters.
  In one of my tables I want to search a boolean field, but I would like to search for it on the basis of a label I assign.</p>
  
  <p>To clarify I attach my code:</p>
  
  <pre><code>  &lt;c:url value="/myurl/" var="Url" /&gt;
  
  &lt;script type="text/javascript"&gt;
  &lt;![CDATA[
      function booleanFormatter(value) {
          if(value){
              return '&lt;span class="fa fa-check-circle" aria-hidden="true" style="color:green;"&gt;&lt;/span&gt;';
          }else{
              return '&lt;span class="fa fa-times-circle" aria-hidden="true" style="color:red;"&gt;&lt;/span&gt;';    
          }
      };
  
      $(function() {
          $("#tableCli").on('click-row.bs.table', function (e, row, $element) {
              window.location= "${Url}"+row.id;
          });
      });
  
    ]]&gt;
  &lt;/script&gt;
  
  &lt;div class="container"&gt;
      &lt;table data-toggle="table" 
      data-url="${Url}listgrid"
      data-page-size="30"
      data-pagination="true" 
      data-search="true" 
      data-show-columns="true" 
      data-classes="table table-hover" 
      data-striped="true" id="tableCli"
      data-show-refresh="true" 
      data-sort-name="inUso"
      data-sort-order="desc"&gt;
          &lt;thead&gt;
              &lt;tr&gt;
                  &lt;th data-sortable="true" data-field="ragioneSociale"&gt;${labelNomeCliente}&lt;/th&gt;
                  &lt;th data-field="piva" data-sortable="true"&gt;${labelPIva}&lt;/th&gt;
                  &lt;th data-field="comune" data-sortable="true"&gt;${labelComune}&lt;/th&gt;
                  &lt;th data-field="codiceIdMacchine" data-sortable="true"&gt;${labelCodifica}&lt;/th&gt;
                  &lt;th data-field="enable" data-formatter="booleanFormatter" data-sortable="true"&gt;${labelEnable}&lt;/th&gt;
                  &lt;th data-field="foreign" data-formatter="booleanFormatter" data-sortable="true"&gt;${labelEstero}&lt;/th&gt;
              &lt;/tr&gt;
          &lt;/thead&gt;
      &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The fields <code>Enable</code> and <code>Foreign</code>  are <code>Boolean</code>, and for my users I want that if search with tips "Enable" the result is the list of enabled customer, same thing for the field "Foreign".</p>
  
  <p>I try to search in link documentation but I don't see nothing.
  Any Ideas?</p>
  
  <p>Thanks</p>