CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • report filters: clearing mult-select values
Pages: [1]

Author Topic: report filters: clearing mult-select values  (Read 1245 times)

TwoMice

  • I post frequently
  • ***
  • Posts: 214
  • Karma: 16
    • Emphanos
  • CiviCRM version: Always current stable version
  • CMS version: Drupal 7
report filters: clearing mult-select values
October 29, 2010, 10:41:43 am
When a report filter presents a multi-select field, I can select one or more values and apply the filter, no problem.  But if I then want to clear all the values and not filter on that field anymore, I can't see a way to do that.  Is this possible to do?

As a workaround, I'm using Firebug's JS console to have JavaScript clear the value, as in:
Code: [Select]
cj('#sid_value').val(0)
Is there a better way?

Thanks,
TM
Please consider contributing to help improve CiviCRM with the Make it Happen! initiative.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: report filters: clearing mult-select values
October 29, 2010, 11:00:46 am
You can customize that template and add "Clear" link. I think custom data of type radio has clear link in Advanced Search, so you might want to check that code.

Kurund
Found this reply helpful? Support CiviCRM

TwoMice

  • I post frequently
  • ***
  • Posts: 214
  • Karma: 16
    • Emphanos
  • CiviCRM version: Always current stable version
  • CMS version: Drupal 7
Re: report filters: clearing mult-select values
October 29, 2010, 11:17:10 am
Okay, template customization I can do.  Would it be useful to have a clear link added in the core Criteria.tpl template for options like radio and multi-select?
Please consider contributing to help improve CiviCRM with the Make it Happen! initiative.

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: report filters: clearing mult-select values
October 29, 2010, 04:04:42 pm
For multi-select you can use ctrl-click to unselect. If you have lots already selected a trick is to select just one item which will clear the others except that, and then ctrl-click that one.

TwoMice

  • I post frequently
  • ***
  • Posts: 214
  • Karma: 16
    • Emphanos
  • CiviCRM version: Always current stable version
  • CMS version: Drupal 7
Re: report filters: clearing mult-select values
October 29, 2010, 06:07:59 pm
Ctrl-click would be kind of obvious I guess, don't know why it didn't occur to me.  Thanks. 

-TM
Please consider contributing to help improve CiviCRM with the Make it Happen! initiative.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • report filters: clearing mult-select values

This forum was archived on 2017-11-26.