<?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: Count total number of choices (not just selected ones) in a list box populated by data connection</title><link>https://www.infopathdev.com:443/forums/thread/116035.aspx</link><pubDate>Thu, 13 Apr 2017 18:39:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116035</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116035.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116035</wfw:commentRss><description>Sure - you need to count the rows in the secondary data source. :) So - your multi-select uses a secondary data source, right? Your expression to count all is just to use the count function on the repeating group that you use for the multi-select&amp;#39;s options. Attach your form to a reply (under the options tab) if you need a hand.</description></item><item><title>Count total number of choices (not just selected ones) in a list box populated by data connection</title><link>https://www.infopathdev.com:443/forums/thread/116033.aspx</link><pubDate>Thu, 13 Apr 2017 18:05:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116033</guid><dc:creator>rnmartin91</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116033.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116033</wfw:commentRss><description>I have a list with an InfoPath form and a document library that are connected so that the InfoPath form displays the title of all the related documents (attachments) in a list box. There are many documents to one InfoPath form/list item. What I’m trying to do is count the total number of attachments and display that number in a text field. Using the count function just returns 1, I’m assuming because only 1 item in the list is selected, but I want to get a count of the total number of “choices” in the list. Is there a way to do that? I was thinking if there’s a way to count the UNselected choices I could just add one to that. I’m open to solutions that use a better control than the list box, that’s just the only way I could get it to work where it shows the title of all of the documents linked to that item.</description></item></channel></rss>