<?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 Selection Boxes Validation issue.</title><link>https://www.infopathdev.com:443/forums/thread/70938.aspx</link><pubDate>Thu, 06 Oct 2011 20:05:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70938</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70938.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=70938</wfw:commentRss><description>&lt;p&gt;Hi, I am using infopath 2007.&lt;/p&gt;
&lt;p&gt;I have a multiple selection box which is based on data from an external datasource.- user not able to add values.&lt;/p&gt;
&lt;p&gt;But&amp;nbsp;the external datasource can change and I may be left with some &amp;quot;invalid&amp;quot; values when the form is going through the workflow.&amp;nbsp; I have had problems doing validation on multiple selection boxes before - so I have resorted to&amp;nbsp;code to recording the error&amp;nbsp;in FormErrors.&lt;/p&gt;
&lt;p&gt;This is working.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If I show the repeating fields individually they show with a red dashed border.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But the multiple selectionbox does not show as erroring.&amp;nbsp; Can I access the form errors from an expression box ?&amp;nbsp; I was thinking of using an expression box (+ conditional formatting ?) &amp;nbsp;to show an error - but don&amp;#39;t know how, or if it is achievable.&lt;/p&gt;
&lt;p&gt;Do you have any other recommendations.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Catharine&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>