Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6765591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:43:48+00:00 2026-05-26T14:43:48+00:00

I’ve a content type which content some cck field. One of the field has

  • 0

I’ve a content type which content some cck field. One of the field has type text and it’s not required field. So it depends on user whether he/she wants to fill this field or not.

I’ve created a view to display all records with this field as exposed filter which is optional. When I want to apply filter “is empty (NULL)” from dropdown it’s showing me mix records. But I intended to get only those records in which this column value is NULL/EMPTY.

How can I configure my view Or apply changes to get desired record after filter.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T14:43:48+00:00Added an answer on May 26, 2026 at 2:43 pm

    Answering own question :

    I think that it’s a bug in drupal exposed filter when you select [IS EMPTY (NULL)] from operator. What drupal do is actually hide the textbox. And when you hit the apply button because of this textbox is empty, it does not included in view query’s where clause

    After some search and analysis what i found is –

    In this file – sites/all/modules/views/js/dependent.js

    If you make change where i placed comment

    var setChangeTrigger = function(trigger_id, bind_id) {
        var changeTrigger = function() {
    
        .....
    
        if (rel_num <= len) {
            // Show if the element if criteria is matched
            $(object).children(':input').val('');  
            // EMPTYING THE TARGETED DROPDOWN ON CHANGE
            object.show(0);
            object.addClass('dependent-options');
        }
        else {
            // Otherwise hide
    
            $(object).children(':input').val('uw'); 
            // PUTTING ANY CHARACTER, WHEN CHANGED EVENT IS CALLED 
            // AND FROM OPERATOR YOU CHOSE IS EMPTY (NULL). 
            // IN MY CASE I JUST PUT "uw"
            object.hide(0);
        } 
    

    you will get the desired result which i was seeking.

    You can verify this using hook__views_pre_execute()

    function myModule_views_pre_execute(&$view){
        switch($view->name)
        {
            case 'YOUR VIEW NAME':
                drupal_set_message($view->build_info['query']);
            break;
        }
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
Basically, what I'm trying to create is a page of div tags, each has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.