<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Counting Unchecked Checkboxes</title><link>https://www.infopathdev.com:443/forums/thread/85666.aspx</link><pubDate>Fri, 28 Dec 2012 16:27:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85666</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85666.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=85666</wfw:commentRss><description>&lt;p&gt;Either approach would involve setting the unchecked values to the point values.&amp;nbsp; The second option just allows using a shorter formula.&lt;/p&gt;&lt;p&gt;In order to allow values other than 1/0/true/false, the fields need to be a different datatype (either numeric or string). I&amp;#39;m not sure if field datatypes can be changed in list forms, but if not, you can probably delete and re-add them with the correct datatype, then create checkboxes from them.&lt;/p&gt;</description></item><item><title>Re: Counting Unchecked Checkboxes</title><link>https://www.infopathdev.com:443/forums/thread/85664.aspx</link><pubDate>Fri, 28 Dec 2012 15:28:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85664</guid><dc:creator>evanburen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85664.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=85664</wfw:commentRss><description>Thanks for the help.&amp;nbsp; I think I want to pursue option 1 and just set the unchecked value to the value of each question but how do I change these to&amp;nbsp;2 points?&amp;nbsp; The only options for checkboxes are 1/0 or True/False.</description></item><item><title>Re: Counting Unchecked Checkboxes</title><link>https://www.infopathdev.com:443/forums/thread/85663.aspx</link><pubDate>Fri, 28 Dec 2012 14:57:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85663</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85663.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=85663</wfw:commentRss><description>&lt;p&gt;I see. Well probably the simplest approach would change your checkboxes so that the checked value is 0 and the unchecked value is the point value of each particular question.&amp;nbsp; Then the way to calculate the number of points would be just:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;u&gt;G_Name&lt;/u&gt; + &lt;u&gt;G_Clear&lt;/u&gt; + ... &lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;You could use this in the default value formula of your hidden field.&lt;/p&gt;&lt;p&gt;To count the number of unchecked boxes, you could use:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;count((&lt;u&gt;G_Name&lt;/u&gt; + &lt;u&gt;G_Clear&lt;/u&gt; + ...)[. != 0])&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;You can simplify the formulas a bit by renaming the checkbox fields so they have a consistent naming pattern, (e.g. prefix all the field names with &amp;quot;Check_&amp;quot;).&amp;nbsp; Then the formulas would become:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;sum(/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/*[starts-with(local-name(), &amp;quot;Check_&amp;quot;)])&lt;/p&gt;&lt;p&gt;count(/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/*[starts-with(local-name(), &amp;quot;Check_&amp;quot;)][. != 0])&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Counting Unchecked Checkboxes</title><link>https://www.infopathdev.com:443/forums/thread/85662.aspx</link><pubDate>Fri, 28 Dec 2012 14:23:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85662</guid><dc:creator>evanburen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85662.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=85662</wfw:commentRss><description>&lt;p&gt;I hope this is what you need.&amp;nbsp; I&amp;#39;m using a Sharepoint 2010 list as a datasource.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;img style="width:282px;height:623px;" src="https://dl.dropbox.com/u/20388755/fields.jpg" width="282" height="623" alt="" /&gt;&lt;/p&gt;&lt;p&gt;This is a copy of my actual data entry form.&amp;nbsp; The circled box is the hidden field where I try and calculate the number of points deducted.&amp;nbsp; I put the Greeting section in a section just to experiment but I don&amp;#39;t know if this makes a difference or not.&amp;nbsp; Thanks.&lt;/p&gt;&lt;p&gt;&lt;img src="https://dl.dropbox.com/u/20388755/hiddenfield.jpg" alt="" /&gt;&lt;/p&gt;</description></item><item><title>Re: Counting Unchecked Checkboxes</title><link>https://www.infopathdev.com:443/forums/thread/85661.aspx</link><pubDate>Fri, 28 Dec 2012 14:09:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85661</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85661.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=85661</wfw:commentRss><description>Could you show us a screenshot of what your data source looks like?</description></item><item><title>Counting Unchecked Checkboxes</title><link>https://www.infopathdev.com:443/forums/thread/85660.aspx</link><pubDate>Fri, 28 Dec 2012 13:52:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85660</guid><dc:creator>evanburen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85660.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=85660</wfw:commentRss><description>&lt;p&gt;I have several groups of checkboxes in different categories which are all checked by default.&amp;nbsp;&amp;nbsp;The checkboxes are used to score or rate calls and if more than 4 points are deducted then the call is failed.&amp;nbsp; Some of the checkboxes are worth&amp;nbsp;2 points and others are worth 4 points.&amp;nbsp; I&amp;#39;m looking for a way to count the number of unchecked boxes and determine the value of them.&amp;nbsp; I was thinking&amp;nbsp;of putting the total value of the unchecked boxes into a hidden field and if it is &amp;gt;=4 then the call is failed.&lt;/p&gt;&lt;p&gt;My two questions are:&lt;/p&gt;&lt;p&gt;How do I count the number of unchecked boxes and get their values?&lt;/p&gt;&lt;p&gt;How do I put the total value into a hidden field (textbox)?&lt;/p&gt;&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>