<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Display latest ID when user submit infopath form</title><link>https://www.infopathdev.com:443/forums/thread/99064.aspx</link><pubDate>Thu, 11 Sep 2014 06:33:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99064</guid><dc:creator>nasir</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99064.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=99064</wfw:commentRss><description>Hello Guys, i am using infopath form in browser and i want to display the identity field value when user submit the form to sharepoint library.
for this i did this workaround
&amp;quot;i created a new retrieve connection with the name &amp;quot;GetLatestID&amp;quot; and on page load i set a rule SetHiddenFieldValue which i am getting from this connection and displaying this hidden value in next view &amp;quot;application submitted with &amp;quot;hiddenvalue&amp;quot;&amp;quot; it would be like Application submitted and its ID is xxxx. but when i submit first form it is displaying empty for this i just concatenate 1 in formula as ID+1 so it is displaying the correct ID.

Problem here is when i delete all the forms from list and say i save 12 records and then deleted now when user submit new form, ID is again zero and i have 0+1=1 but the actual ID in the list is 13.
how could i display latest ID when user submit form and on submit i am switching view to formsubmitted.....</description></item></channel></rss>