Lars Nielsen's Discoveries

February 2, 2012

Content Query Web Part with Yes/No Checkbox field

Filed under: Development,SharePoint — Lars Nielsen @ 7:42 pm
Tags: ,

Recently I was creating a custom Content Query Web Park using Heather Solomon’s great walkthrough.  I was trying to set up a query using a custom site column of the type Yes/No which displays as a checkbox.

Initially I set up the properties of the web part to filter on the field looking for the value “Yes”, like this:

Content Query web part properties

But applying this resulted in this sorry message in the web part on the page:

The query has returned no items

I knew there were at least two items that should match the query, so I tried switching from “Yes” to “1” and applied the query again.  This time it returned the items that I expected.

Content Query Web Part properties with correct query


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog at

%d bloggers like this: