<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Multiple Select List Box default value ysing Fx or Code</title><link>https://www.infopathdev.com:443/forums/thread/96512.aspx</link><pubDate>Tue, 18 Mar 2014 19:13:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96512</guid><dc:creator>anoorula</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96512.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=96512</wfw:commentRss><description>Hello,

If anybody could help me in figuring out how to set default or customized values (checked) for a multiple select list box in infopath based on a values in a secondary data connection using the fx function or code, instead of manually typing in text in the default value function, it would be really helpful. Have been stuck for eternity in this 


I have a temp table now which has each student name and the subject separtely

something like this 

Student Name       Subject  

AA                               English

AA                              Maths


So that in my infopath form if I choose a student name in a drop down box the multiple selection list box has the values of the subject chosen by the student checked</description></item></channel></rss>