<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Populate checkbox from Sharepoint List</title><link>https://www.infopathdev.com:443/forums/thread/61413.aspx</link><pubDate>Mon, 15 Nov 2010 12:39:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61413</guid><dc:creator>chris.de.simpele</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61413.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=61413</wfw:commentRss><description>I had the same problem and followed your suggestion. The return value from the sharepoint list was a number 1. &lt;br /&gt;
I used this formula to have a true/false value shown to the user: contains(&amp;lt;your_checkbox_column&amp;gt;, &amp;quot;1&amp;quot;)&lt;br /&gt;&lt;br /&gt;

Searched a bit and apparantly xpath can handle a little if then else. So we can set any text we want like this:&lt;br /&gt;
concat(&lt;br /&gt;
&amp;nbsp;&amp;nbsp;  substring(&amp;quot;yes&amp;quot;, 1, number(contains(&amp;lt;your_checkbox_column&amp;gt;, &amp;quot;1&amp;quot;)) * string-length(&amp;quot;yes&amp;quot;)),&lt;br /&gt;
&amp;nbsp;&amp;nbsp;  substring(&amp;quot;no&amp;quot;, 1, number(not(contains(&amp;lt;your_checkbox_column&amp;gt;, &amp;quot;1&amp;quot;))) * string-length(&amp;quot;no&amp;quot;))&lt;br /&gt;
)</description></item><item><title>Re: Populate checkbox from Sharepoint List</title><link>https://www.infopathdev.com:443/forums/thread/58677.aspx</link><pubDate>Fri, 03 Sep 2010 21:45:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58677</guid><dc:creator>Bexx27</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58677.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=58677</wfw:commentRss><description>&lt;p&gt;Thanks for your suggestions. As I am just trying to display whether or not the features are available based on a search I have started using expression boxes to display text.. ie Internet Available. Then I set the the conditional formatting on the expression box to be visible or not based on the value of the yes/no column. &lt;/p&gt;&lt;p&gt;I would like to figure out why I am not able to get the checkbox working so I will go back to that problem on Tuesday but for now I can move on and display the data in a different way. I will try using a calculated column in my sharepoint list, that may simplify things. &lt;/p&gt;&lt;p&gt;Is it possible to create a field that captures the Yes/No data and stores it as a more workable value, then use that value to generate a checkbox... out of curiosity.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Also, is there a good site for Infopath tutorials.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks for your help, I will touch back on Tuesday after I have played around with the checkbox problem again. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Populate checkbox from Sharepoint List</title><link>https://www.infopathdev.com:443/forums/thread/58675.aspx</link><pubDate>Fri, 03 Sep 2010 21:08:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58675</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58675.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=58675</wfw:commentRss><description>&lt;p&gt;I wonder if you could add a calculated column to your list that doesn&amp;#39;t show in the view, and is a number (like in your test) based on the value of your Yes / No column, then use that field for the checkboxes in your form?&lt;/p&gt;
&lt;p&gt;Or, I suppose, since this is a secondary data source and you are probably just displaying the data, maybe have expression boxes for &amp;quot;Yes&amp;quot; or &amp;quot;No&amp;quot; in your form based on the value of the field? Just some random thoughts....&lt;/p&gt;</description></item><item><title>Re: Populate checkbox from Sharepoint List</title><link>https://www.infopathdev.com:443/forums/thread/58671.aspx</link><pubDate>Fri, 03 Sep 2010 20:08:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58671</guid><dc:creator>Bexx27</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58671.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=58671</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Yeah it can be option buttons. They too do not populate either. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Populate checkbox from Sharepoint List</title><link>https://www.infopathdev.com:443/forums/thread/58670.aspx</link><pubDate>Fri, 03 Sep 2010 19:49:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58670</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58670.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=58670</wfw:commentRss><description>&lt;p&gt;Ooooh, I wonder if it is because they can be blank? Can you bind option buttons to that field in your form?&lt;/p&gt;</description></item><item><title>Re: Populate checkbox from Sharepoint List</title><link>https://www.infopathdev.com:443/forums/thread/58669.aspx</link><pubDate>Fri, 03 Sep 2010 19:39:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58669</guid><dc:creator>Bexx27</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58669.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=58669</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Interestingly. I just tried created a new Sharepoint column that was specified as a number. I then set the min = 0 and the max = 1 as a constraint on the column. When I made that column into a checkbox it worked just fine.The number checkbox had checked = 1 and unchecked = 0. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;I am wondering if the yes/no checkboxes are not populating because their real values are yes and no.. at least thats what it says in Sharepoint.&amp;nbsp; It is confusing because in Infopath clearly states its data type to be boolean.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Populate checkbox from Sharepoint List</title><link>https://www.infopathdev.com:443/forums/thread/58668.aspx</link><pubDate>Fri, 03 Sep 2010 19:39:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58668</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58668.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=58668</wfw:commentRss><description>&lt;p&gt;Yah, that&amp;#39;s kind of what I was thinking was going to happen. If you have a checkbox bound to one of these fields, and also a text box (so you can see the actual value) and you preview and select the checkbox, what does the actual value show? What about when you de-select?&lt;/p&gt;</description></item><item><title>Re: Populate checkbox from Sharepoint List</title><link>https://www.infopathdev.com:443/forums/thread/58667.aspx</link><pubDate>Fri, 03 Sep 2010 19:32:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58667</guid><dc:creator>Bexx27</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58667.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=58667</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I am not able to change the values it is greyed out. I wanted to change it to 1 and 0 because that is what was printing in the textbox. I am assuming it won&amp;#39;t let me change it because it was generated from the 2nd data source. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Populate checkbox from Sharepoint List</title><link>https://www.infopathdev.com:443/forums/thread/58661.aspx</link><pubDate>Fri, 03 Sep 2010 18:23:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58661</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58661.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=58661</wfw:commentRss><description>&lt;p&gt;Are you able to change the checked / unchecked values for the checkbox controls? It seems odd that if the boxes are bound to your secondary data source that they aren&amp;#39;t being created with the correct values... but if you can change them you could set checked to be 1 and unchecked to be 0.&lt;/p&gt;</description></item><item><title>Populate checkbox from Sharepoint List</title><link>https://www.infopathdev.com:443/forums/thread/58647.aspx</link><pubDate>Fri, 03 Sep 2010 14:56:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58647</guid><dc:creator>Bexx27</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58647.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=58647</wfw:commentRss><description>&lt;p&gt;Help Please! &lt;br /&gt;&lt;/p&gt;&lt;p&gt;I have just started using Infopath 2007 so I can generate a bit of a search on a Sharepoint list. I setup my list so that some of the fields are yes/no checkboxes. I have added the list as a datasource to received data and this has been working for me on all of the fields that are textboxes. I am using conditionals to basically filter the list to show only those conditions which match the search. I formatted the repeating section so that details about the items being search will be displayed. Some of these details I wanted to show as a check on/off box to denote if the item has that feature. &lt;/p&gt;&lt;p&gt;The problem that I am having is that all of the checkboxes display as blank. When I change the checkbox to a textbox and run my search the boxes display a value of 1 or 0 so I know that the data source is received data properly. I am assuming that I am missing something when it comes to the checkboxes. &lt;/p&gt;&lt;p&gt;&amp;nbsp;What do I need to do to have the true/false data displayed in a populated checkbox?&amp;nbsp; Any help would be appreciated it. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;&amp;nbsp;Bex &lt;/p&gt;&lt;p&gt;Addition: All I am doing to add the checkbox is drag the attribute from the secondary data source (Sharepoint List). It makes the box automatically. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>