<?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>Infopath Auto-fill field column displaying field ID not value</title><link>https://www.infopathdev.com:443/forums/thread/98641.aspx</link><pubDate>Mon, 11 Aug 2014 08:32:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98641</guid><dc:creator>paisher</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98641.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=98641</wfw:commentRss><description>Hello,

I&amp;#39;ve searched through a lot of examples that cover auto-filling fields based on a dropdown choice.  
I managed to get the fields to be autopopulated but my list view now shows an ID instead of the company value. 


Here&amp;#39;s some information 

SharePoint Online
Infopath 2013

(source list)
Customers
-Company Field
-VAT Field

(target list)
Requests
-dropdown Company 
        .secondary data source = CustomersDDL, entries = /dfs:myFields/dfs:dataFields/d:SharePointListItem_RW, value = d:ID, displayname = d:Name)
        .RULE &amp;gt; set field&amp;#39;s value, field = VAT, value= VAT[ID = current()] &amp;gt; xpath= xdXDocument:GetDOM(&amp;quot;CustomersDDL&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:VAT[../d:ID = current()]

-autofil VAT field

The only way I got the rule working is to replace the last part of the xpath to current ()  
Still don&amp;#39;t really know why but this is probably part of the issue as well?

Any idea?  I&amp;#39;m new to Infopath and I have to say I still don&amp;#39;t understand how this whole autofill thing works.

Thanks
m.</description></item></channel></rss>