Jump to content
elmr

How to find elements with empty field

Recommended Posts

Inputfield dependencies work with the html inputfields, which aren't filled for file fields, because of it's long time ajaxy nature. Afaik there's currently no way to archive what you need.

  • Like 1

Share this post


Link to post
Share on other sites

field.count=0,field=1 ( not works)

so i need to find page that containes field value = 1 and all pages that not containing any value. 

solved: field=0|1

Share this post


Link to post
Share on other sites

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);

 

Share this post


Link to post
Share on other sites

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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...