<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Multiple Selection List box</title><link>https://www.infopathdev.com:443/forums/thread/15172.aspx</link><pubDate>Tue, 20 Mar 2007 22:58:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15172</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15172.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15172</wfw:commentRss><description>Hi Jared,&lt;br /&gt;&lt;br /&gt;I'm not sure on your schema, but you should probably change this line:&lt;br /&gt;&lt;br /&gt;var objProblemItems = objDOM.selectNodes("/dfs:myFields/dfs:dataFields/dfs:StoreRepairsList/@CatagoryFromList");&lt;br /&gt;&lt;br /&gt;to something like this:&lt;br /&gt;&lt;br /&gt;var objProblemItems = objDOM.selectNodes("/dfs:myFields/dfs:dataFields/dfs:StoreRepairsList[@Selected = 'true']/@CatagoryFromList");&lt;br /&gt;</description></item><item><title>Multiple Selection List box</title><link>https://www.infopathdev.com:443/forums/thread/13083.aspx</link><pubDate>Fri, 09 Mar 2007 23:46:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13083</guid><dc:creator>jaredhanks</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13083.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13083</wfw:commentRss><description>I have a form that has some multiple selection list boxes and I'm having trouble capturing the selected values.  For each selected value in the multiple selection list box I need to get the value of each selected value and email it in a plain text email.&lt;br /&gt;&lt;br /&gt;I'm currently am able to send an email with all of the items in the list using:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;function XDocument::OnSubmitRequest(eventObj)&lt;br /&gt;{ var iMsg = new ActiveXObject("CDO.Message");&lt;br /&gt;  iMsg.To = "email@domain.com";&lt;br /&gt;  iMsg.From = XDocument.DOM.selectSingleNode("//my:email").text;&lt;br /&gt;  iMsg.Subject = XDocument.DOM.selectSingleNode("//my:textbox1").text + &lt;br /&gt;		" - "  + XDocument.DOM.selectSingleNode("//my:Subject").text;&lt;br /&gt;var objDOM = XDocument.GetDOM("List from Sharepoint list");&lt;br /&gt;objDOM.setProperty("SelectionNamespaces", 'xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" ' + 'xmlns:d="http://schemas.microsoft.com/office/infopath/2003/ado/dataFields"');&lt;br /&gt;//Get the selected items&lt;br /&gt;var objProblemItems = objDOM.selectNodes("/dfs:myFields/dfs:dataFields/dfs:StoreRepairsList/@CatagoryFromList");&lt;br /&gt;&lt;br /&gt;for(i=0;i&amp;lt;=objProblemItems.length-1;i++)&lt;br /&gt;{&lt;br /&gt;	iMsg.TextBody += objProblemItems(i).text;&lt;br /&gt; 	if(i&amp;lt;objProblemItems.length-1)&lt;br /&gt; 	{&lt;br /&gt; 		iMsg.TextBody += ",";&lt;br /&gt; 	}&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;How can I just get the selected items in the list, instead of all items?&lt;br /&gt;&lt;br /&gt;Any help is appreciated.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Jared</description></item></channel></rss>