<?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: Change text box text based on drop down selection</title><link>https://www.infopathdev.com:443/forums/thread/43748.aspx</link><pubDate>Thu, 02 Jul 2009 16:00:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43748</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43748.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=43748</wfw:commentRss><description>&lt;p&gt;Type in info to a dropdown?&amp;nbsp; Do you mean selects from the choices in a dropdown?&amp;nbsp; What is the logic for how selections correspond to a number?&amp;nbsp; why not make the value for the display names equal to whatever number is required?&amp;nbsp; That way, you already know the number the moment the selection is made, and all you have to do is set the default value of your text box to the value of the dropdown.&amp;nbsp; It will show the number (value) after the dropdown selection (display name) has been chosen.&amp;nbsp; You can either do this directly in the form&amp;#39;s data source in the control, or you can have a sharepoint list (or other database source) with a table and two columns - one for the selection and one for the associated number.&lt;/p&gt;</description></item><item><title>Change text box text based on drop down selection</title><link>https://www.infopathdev.com:443/forums/thread/43746.aspx</link><pubDate>Thu, 02 Jul 2009 15:21:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43746</guid><dc:creator>Gagan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43746.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=43746</wfw:commentRss><description>&lt;p&gt;if my user types in some info into a drop down, depending on that info i would like to auto-populate a text box with a number. &lt;/p&gt;
&lt;p&gt;I cant use rules, because there are too many selections and that would get very aggravating.&lt;/p&gt;
&lt;p&gt;Whats the easiest way to do this via code?&lt;/p&gt;
&lt;p&gt;Thanks so much!&lt;/p&gt;</description></item></channel></rss>