<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>REST and edting infopath web forms</title><link>https://www.infopathdev.com:443/forums/thread/105649.aspx</link><pubDate>Mon, 29 Feb 2016 13:08:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105649</guid><dc:creator>danbuntu</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105649.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=105649</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi all&lt;/p&gt;&lt;p&gt;I have a form&amp;nbsp;that use REST services, webforms and Sharepoint lists.&amp;nbsp;&lt;/p&gt;&lt;p&gt;When a user opens a new web form they type in an id number, this is looked up by the rest service and it a result&amp;nbsp;is found if populates&amp;nbsp;fields in the form.&amp;nbsp;The user then clicks submit and the data is saved to a Sharepoint List. This is all working nicely.&lt;/p&gt;&lt;p&gt;However when they click on a submitted form to edit it all the fields are blank.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I&amp;#39;m assuming that I need something like:&amp;nbsp;&lt;/p&gt;&lt;p&gt;if (list field isn&amp;#39;t empty) {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; get the list data and put it&amp;nbsp; the field&amp;nbsp;&lt;/p&gt;&lt;p&gt;} else {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; keep the field empty so that the rest service can fill it&lt;/p&gt;&lt;p&gt;}&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;m struggling to work out how best to do this though. Any advice would be really useful.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>