<?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: Change value of field based on drop down selection</title><link>https://www.infopathdev.com:443/forums/thread/20146.aspx</link><pubDate>Thu, 24 May 2007 17:31:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20146</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20146.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=20146</wfw:commentRss><description>&lt;p&gt;Your first question -- yes, those assumptions are correct.&lt;/p&gt;&lt;p&gt;Quotes are there to separate the code from the rest of the text.&lt;/p&gt;&lt;p&gt;The equal sign after field1 stands for &amp;quot;is defined as&amp;quot;.&lt;/p&gt;&lt;p&gt;The ../ means to go to the parent node.&lt;/p&gt;</description></item><item><title>Re: Change value of field based on drop down selection</title><link>https://www.infopathdev.com:443/forums/thread/20062.aspx</link><pubDate>Fri, 18 May 2007 20:12:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20062</guid><dc:creator>ArdentBassist</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20062.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=20062</wfw:commentRss><description>&lt;p&gt;In your example....&amp;nbsp; sql is the name of the data source, person is the name of the table, and email is the name of the column?&amp;nbsp; I cannot seem to get this working with my system.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Are the quotes necessary and is the equals sign listed right after the &amp;quot;field 1&amp;quot; part of anything?&lt;/p&gt;&lt;p&gt;&amp;nbsp;Does the ../ mean to go back a level in the data source hierarchy?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I greatly appreciate your help.&lt;/p&gt;&lt;p&gt;- Tim&lt;/p&gt;</description></item><item><title>Re: Change value of field based on drop down selection</title><link>https://www.infopathdev.com:443/forums/thread/6451.aspx</link><pubDate>Tue, 21 Dec 2004 19:12:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6451</guid><dc:creator>crashoverride</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6451.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6451</wfw:commentRss><description>1) create two sections. (not repeating sections, just plain sections)&lt;br /&gt;&lt;br /&gt;2) Put a drop down list box in the first section and bind it to the &lt;b&gt;query field &lt;/b&gt;that holds the ID (it should be under q:TableName) &lt;br /&gt;&lt;br /&gt;3) Put a text box in the second section and bind it to the &lt;b&gt;data field&lt;/b&gt; that holds the email address (should be under d:TableName)&lt;br /&gt;&lt;br /&gt;4) Right click the drop down list box, choose drop down list box properties, then click the "Rules" button. Click "Add a rule", then click "Add an action", and then choose the "Query using a data connection" action with the main data connection.&lt;br /&gt;&lt;br /&gt;Now when you change the drop down selection, the email text bopx should get populated.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;**Note: your drop down list box should be bound to the &lt;b&gt;ID query field&lt;/b&gt; in the main data source, but it can get its list box entries from another source (I would create a secondary data source with the same table that is used in the main data connection, then populate the drop down using that connection)</description></item><item><title>Re: Change value of field based on drop down selection</title><link>https://www.infopathdev.com:443/forums/thread/6450.aspx</link><pubDate>Tue, 21 Dec 2004 19:00:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6450</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6450.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6450</wfw:commentRss><description>Let's assume your drop-down list displays "name" and stores "id", and is bound to "field1". Let's also assume you want to populate "field2" with "email" when the drop-down value changes.&lt;br /&gt;&lt;br /&gt;Let's assume you have a secondary data source named "sql" with a repeating list of "person"s that you are getting the values from.&lt;br /&gt;&lt;br /&gt;You will use rules and filters such that:&lt;br /&gt;&lt;br /&gt;Rule on "field1" = &lt;br /&gt;Set value of "field2" to be "sql/person/email[../id = (MainDOM)/field1]"&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>Change value of field based on drop down selection</title><link>https://www.infopathdev.com:443/forums/thread/4523.aspx</link><pubDate>Tue, 21 Dec 2004 12:54:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4523</guid><dc:creator>foomonkey</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4523.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4523</wfw:commentRss><description>I have been working for quite some time on trying to set the value of a field based on the selection of a drop-down list. First off, there seem to be several different ways (none documented well at all) on how this should be accomplished. &lt;br /&gt;&lt;br /&gt;I have a table in a SQL Server database that has an id, name, and email address. I have the names showing up in a drop down list. When someone selects the name, I want the email field populated automatically.&lt;br /&gt;&lt;br /&gt;I have tried writing code by opening the script editor but this is painful and debugging is impossible. I have tried using the "rules" and filters but that doesn't seem to work.&lt;br /&gt;&lt;br /&gt;I found the Examples on this site and thought I had found some help. Unfortunately, I don't have the Northwind database installed so I can't even open the example that I thought would help. No commentary accompanied the example so that didn't help. &lt;br /&gt;&lt;br /&gt;I have done countless google searches but I cannot seem to find relevant answers. Do I sound frustrated? I am.</description></item></channel></rss>