Jump to content

How to find elements with empty field


elmr
 Share

Recommended Posts

  • 9 months later...
  • 7 months later...

You can also pass selector in array, it worked for me with checkbox.

 

$searchCriteria = array('parent' => 'some_id',
	'some_field' => 0,
	'some_other_field' => array(0, 1)
);

$results = wire('pages')->find($searchCriteria);

 

Link to comment
Share on other sites

  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...