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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...