<?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: Populate a text box with Display Name from Drop Down List</title><link>https://www.infopathdev.com:443/forums/thread/70166.aspx</link><pubDate>Thu, 08 Sep 2011 22:17:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70166</guid><dc:creator>SharpBud</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70166.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=70166</wfw:commentRss><description>&lt;p&gt;I followed this post to successfully populate a field (NameField) with the Display Name from a drop-down list that populates another field (ValueField). The drop-down list&amp;nbsp;values and&amp;nbsp;display names are retrieved from&amp;nbsp;a web service (getFieldValuesAndNames). Both these fields (ValueField and DisplayField) are columns in a repeating table. The default value has the checkbox &amp;quot;Refresh value when formula is recalculated&amp;quot; checked.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The advanced XPath for the default value of NameField looks like this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;xdXDocument:GetDOM(&amp;quot;getFieldValuesAndNames&amp;quot;)/dfs:myFields/dfs:dataFields/ns2:getFieldValuesAndNamesResponse/ns2:getFieldValuesAndNamesResult/q1:Values/q1:Names[../q1:Value= current()/../my:ValueField]&lt;/p&gt;
&lt;p&gt;&amp;nbsp;My problem is that when I create another view (for instance, a read-only view) the value for NameField appears blank. The value for the ValueField shows up correctly. Any idea on how to display the value in a different view?&lt;/p&gt;</description></item><item><title>Re: Populate a text box with Display Name from Drop Down List</title><link>https://www.infopathdev.com:443/forums/thread/43836.aspx</link><pubDate>Mon, 06 Jul 2009 22:24:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43836</guid><dc:creator>tweeter77</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43836.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=43836</wfw:commentRss><description>&lt;p&gt;Thanks again.&amp;nbsp; Works great.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Aaron&lt;/p&gt;</description></item><item><title>Re: Populate a text box with Display Name from Drop Down List</title><link>https://www.infopathdev.com:443/forums/thread/43767.aspx</link><pubDate>Thu, 02 Jul 2009 23:01:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43767</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43767.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=43767</wfw:commentRss><description>&lt;p&gt;Ok, do it like this:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Create FullName data element in your main data source as a Text field&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Drag element to form canvas (creates text box)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Double-click that&amp;nbsp;box for it&amp;#39;s properties&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;In the Default Value area, click the fx button&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;In the function builder, select &amp;quot;Insert field&amp;quot;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;On the data source screen, choose your SECONDARY data source that comes from the Contacts list&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Drill down and SINGLE-CLICK the FullName node (or whichever node you&amp;#39;re using for full names)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Click filter while FullName is highlighted&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;In the first pulldown, select the Email_Address field from the secondary data source&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Set the operand to &amp;quot;is equal to&amp;quot;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;In the last field, select the data element from your main data source that is bound to your dropdown&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;</description></item><item><title>Re: Populate a text box with Display Name from Drop Down List</title><link>https://www.infopathdev.com:443/forums/thread/43765.aspx</link><pubDate>Thu, 02 Jul 2009 22:16:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43765</guid><dc:creator>tweeter77</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43765.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=43765</wfw:commentRss><description>&lt;p&gt;Thanks for your help, warrtalon.&lt;/p&gt;
&lt;p&gt;What you are saying makes sense to me but I must be inputing it wrong somehow.&amp;nbsp; I am setting the default value to the Namefield and contructing the formula the way you have stated but I am getting an error.&amp;nbsp; I insert Contacts (Full Name) then go to insert Contacts (email_address) and choose &amp;quot;Filter..&amp;quot;, then make it = to the PulldownField.&amp;nbsp; Any idea what I am doing wrong?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Aaron&lt;/p&gt;</description></item><item><title>Re: Populate a text box with Display Name from Drop Down List</title><link>https://www.infopathdev.com:443/forums/thread/43764.aspx</link><pubDate>Thu, 02 Jul 2009 21:14:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43764</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43764.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=43764</wfw:commentRss><description>&lt;p&gt;If you don&amp;#39;t actually need the email address in the dropdown, then put Full Name in the Value field.&amp;nbsp; If you DO need that email address for other reasons, then set the default value of your other text field to this statement:&lt;/p&gt;
&lt;p&gt;Set Field&amp;#39;s Value:&lt;/p&gt;
&lt;p&gt;NameField&lt;/p&gt;
&lt;p&gt;Contacts(Full Name) where (filter) Contacts(email_address) equals PulldownField.&lt;/p&gt;
&lt;p&gt;You&amp;#39;re basically telling your text field to default to the Full Name of the person in the contacts list where the email address in the contacts list equals the email address in the form (the one chosen in the pulldown).&lt;/p&gt;</description></item><item><title>Populate a text box with Display Name from Drop Down List</title><link>https://www.infopathdev.com:443/forums/thread/43757.aspx</link><pubDate>Thu, 02 Jul 2009 18:48:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43757</guid><dc:creator>tweeter77</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43757.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=43757</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have a drop down list w/ data pulled from a Sharepoint Contacts List.&amp;nbsp; I&amp;#39;m pulling the email address but displaying the full name.&amp;nbsp; I want to have the Display Name (full name) from my Drop down list populate a separate text box.&amp;nbsp; I want it to update continually as the user changes the drop down list choice.&amp;nbsp; I know there is a way to do this using rules/formulas but I don&amp;#39;t know specifically how to set that up.&amp;nbsp; Can anyone help?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Aaron&lt;/p&gt;</description></item></channel></rss>