<?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: Set default value of a comboBox/List box/Text box</title><link>https://www.infopathdev.com:443/forums/thread/53231.aspx</link><pubDate>Tue, 30 Mar 2010 12:57:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53231</guid><dc:creator>Hoveyg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53231.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=53231</wfw:commentRss><description>&lt;p&gt;Hi Jimmy,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Jimmy:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;1.&amp;nbsp; If you don&amp;#39;t know what values are going to be in the dropdown, how do you intend for the form to select a default value?&lt;/div&gt;&lt;/BLOCKQUOTE&gt; 
&lt;p&gt;-Guess there were a few ways I was thinking of handling this.. It could be contained in a field of my Sharepoint list that the datasource is coming from..&amp;nbsp;&amp;nbsp; Default Value=Y.. I&amp;#39;d even be happy with setting the default as the first value of the list.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Jimmy:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;2.&amp;nbsp; Unless you need the user to be able to edit this value, why not just use an expression box, and no rules? &lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;I actually started off with the expression box, but it&amp;nbsp;actually worked even more incorrectly...&amp;nbsp; The expression box value was duplicated throughout all nodes.. See screenshot below.&amp;nbsp; The Annual Leave selection should have the Annual Leave&amp;nbsp;label, not hte Bereavement Leave&amp;nbsp; Label.&amp;nbsp; Every single node of the repeating table will have the same value for the expression.&amp;nbsp; Thats pretty much the root of my problem and what i&amp;#39;m trying to accomplish.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img style="WIDTH:633px;HEIGHT:209px;" src="http://5yedeg.bay.livefilestore.com/y1pezOsD7110l-vm-lkrAwgm-8Ka3KPL62kagIqlf7IclzVJHR0yloFu34shYFa3xe4Drn2ZtHBOzEicaHH49ZrOIW029jz0rCk/ExpressionBox.JPG" width="764" height="315" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I use the Rule on the text box, it actually popuplates my label a bit more properly..&amp;nbsp; but then it&amp;#39;ll default to the previous nodes&amp;#39; value.. Has a very sporadic behavior..&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any other ideas?&amp;nbsp; Any help would be appreciated.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Greg&lt;/p&gt;</description></item><item><title>Re: Set default value of a comboBox/List box/Text box</title><link>https://www.infopathdev.com:443/forums/thread/53219.aspx</link><pubDate>Tue, 30 Mar 2010 03:50:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53219</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53219.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=53219</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;1.&amp;nbsp; If you don&amp;#39;t know what values are going to be in the dropdown, how do you intend for the form to select a default value?&lt;/p&gt;&lt;p&gt;&amp;nbsp;2.&amp;nbsp; Unless you need the user to be able to edit this value, why not just use an expression box, and no rules?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Set default value of a comboBox/List box/Text box</title><link>https://www.infopathdev.com:443/forums/thread/53197.aspx</link><pubDate>Mon, 29 Mar 2010 18:05:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53197</guid><dc:creator>Hoveyg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53197.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=53197</wfw:commentRss><description>&lt;p&gt;Hi Everyone,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;nbsp;kind of have 2 questions here.&amp;nbsp; They sound simple at first, but i&amp;#39;ve been really racking my brain on them...&lt;/p&gt;
&lt;p&gt;1.&lt;u&gt; Set default value of a comboBox&lt;/u&gt;&amp;nbsp;- I have a comboBox that is populated from an external data source, just wondering, is it possible to set a default value to a combo box that is populated this way?&amp;nbsp; I&amp;#39;m sure I could set the value via a rule, but I&amp;#39;m not sure what values will be in the dropdown to hardcode in a default.&lt;/p&gt;
&lt;p&gt;2. &lt;u&gt;Set default value of a text box in a repeating section&lt;/u&gt; - I have an external sharepoint list brought in as a datasource, and I want to set the value of that textbox using a filter from another field in the repeating section, but everytime i set it, the value changes for each node in the repeating section, i want to set it just for that node or is that possible?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img style="WIDTH:575px;HEIGHT:318px;" src="http://public.bay.livefilestore.com/y1pPzanede2SdNVI8MS_LvfnSxQcJ-ZTph7GaAIoiKntaqxv8BIGSnyDULVVgyjQ0h0qeOAfmUr0_6YkSyV9IJLpg/form.JPG" width="724" height="447" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;(in order to do what i have it doing so far, i had to add the Dropdown box to the repeating section as a text box, then I could use change rules to set the Special message box value ie. please Provide Relationship to deceased, but as soon as I choose one node with a special message, they all display the same message)&lt;/p&gt;
&lt;p&gt;Any help would be appreciated.&lt;/p&gt;
&lt;p&gt;Greg&lt;/p&gt;</description></item></channel></rss>