Hello,

I have a textfield in my node for Skype username. In the views exposed filter I would like to add a radio for:

Skype (o) available ( ) not available ( ) no preference

This will allow filtering the views with nodes that either have the skype username field filled out, does not have skype username filled out, or all nodes with/without skype username.

Is this something that may be considered?
I believe it would add greater flexibility to this AWESOME module.

Thank you very much in advance!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Bilmar’s picture

Title: Radio exposed filter for textfield 'has value' 'does not have value' » Exposed Radio Button for Textfield with choice of 'textfield has value' and 'textfield doesn't have value'

Changed title. This is to filter out users that do not enter a value into the optional textfield in the node edit or filter out users that do enter a value into the optional textfield in the node edit.

Hope this draws interest =)

mikeker’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

Clearing out the issue queue... Sorry for the long delay.

I think this would be a good addition to exposed filters. Essentially, we want to look at a text field and have options for "is null", "is not null", and "either" with customizable text for each.

Unfortunately, I'm trying to get a 6.x release out and want to try and concentrate new features in the 7.x branch with occasional backports to 6.x. As such, I'm bumping the version number but keeping this issue active for later consideration.

Again, sorry about the long wait...

TinaRey’s picture

Hey there, what if I want to expose a filter for a text field with "is not null"? I would expect a checkbox to turn up but instead there's nothing. Any way I can get my checkbox without including another boolean field in the content type?

Deciphered’s picture

Status: Active » Needs review
FileSize
634 bytes

Attached patch, in combination with the patch at http://drupal.org/node/477984#comment-6073924 will provide support for exposed 'Is empty' and 'Is not empty' operators.

Status: Needs review » Needs work

The last submitted patch, exposed_EMPTY_NOT_EMPTY-950312-4.patch, failed testing.

Deciphered’s picture

Status: Needs work » Needs review
Deciphered’s picture

Version: 7.x-1.x-dev » 7.x-3.x-dev

Oops, Issue is against the wrong branch, hence failed test, let's try that again.

Status: Needs review » Needs work

The last submitted patch, exposed_EMPTY_NOT_EMPTY-950312-4.patch, failed testing.

Deciphered’s picture

Status: Needs work » Needs review
FileSize
634 bytes

Same patch, but uploading against 7.x-3.x in case that helps fix the issue.

jkopel’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

if you are still out there and would like this to happen feel free to open a new ticket against D8, sorry!