<?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>How to populate a hidden field with Value in Contact Selector</title><link>https://www.infopathdev.com:443/forums/thread/71234.aspx</link><pubDate>Thu, 20 Oct 2011 00:41:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71234</guid><dc:creator>rscottphillips</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71234.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=71234</wfw:commentRss><description>&lt;p&gt;I have a text field that is autopopulated with the user&amp;#39;s information (via GetUserProfileByName) who is filling out the form.&amp;nbsp; If the user is filling out the form on behalf of another person,&amp;nbsp;I have&amp;nbsp;a contact selector control to allow the user to search and select another person via AD.&lt;/p&gt;
&lt;p&gt;I have created a hidden field to capture the correct value via rules as per below.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;If the person is filling out the form for his/herself, capture the value in the autopopulated field.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;If the person is filling out the form on behalf of someone else, capture the value in the contact selector control.&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;The default value for the hidden field is the autopopulated field.&amp;nbsp;The trouble I have is how to capture the value from the contact selector control. I have tried DisplayName, AccountId, and AccountType with no success.&lt;/p&gt;
&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Scott&lt;/p&gt;
&lt;p&gt;InfoPath 2007&lt;/p&gt;</description></item></channel></rss>