<?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: Can I set a default value for People Picker</title><link>https://www.infopathdev.com:443/forums/thread/120588.aspx</link><pubDate>Wed, 13 Mar 2019 18:42:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120588</guid><dc:creator>Michael Boonie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120588.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=120588</wfw:commentRss><description>Wait... am I to understand that one can now use User Profile Services with SPO? I didn&amp;#39;t know they &amp;quot;re-enabled&amp;quot; it.</description></item><item><title>Re: Can I set a default value for People Picker</title><link>https://www.infopathdev.com:443/forums/thread/120559.aspx</link><pubDate>Fri, 08 Mar 2019 23:39:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120559</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120559.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=120559</wfw:commentRss><description>Hey, Teddybeardog - just add a condition to not set your field if it already has a value in your rules. Then it only gets set when the form is new &amp;amp; doesn&amp;#39;t get updated every time someone else opens the form. :-)</description></item><item><title>Re: Can I set a default value for People Picker</title><link>https://www.infopathdev.com:443/forums/thread/120558.aspx</link><pubDate>Fri, 08 Mar 2019 23:36:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120558</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120558.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=120558</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I just tried this on a form I have published to my SharePoint Online site - and I get an error when I query the user profile service. I&amp;#39;m pretty sure this form used to work.&lt;/p&gt;&lt;blockquote style="margin-right:0px;" dir="ltr"&gt;&lt;p&gt;An error occurred while trying to connect to a Web service.&lt;/p&gt;&lt;p&gt;An entry has been added to the Windows event log of the server.&lt;br /&gt;Log ID:5566&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;This is the same error we used to see on SharePoint on-prem when loopback check wasn&amp;#39;t enabled - and if I remember correctly initially this web service didn&amp;#39;t work in SharePoint Online. &lt;/p&gt;&lt;p&gt;You could try changing to UDCX with an SSO app id - I&amp;#39;m not at all sure that&amp;#39;s going to work, but it could be worth a shot - outlined here in method 2 (it says IP 2010 - but the steps to using UDCX are the same): &lt;a href="https://support.microsoft.com/en-us/help/981684/when-you-connect-to-a-web-service-by-using-an-infopath-2010-form-that"&gt;https://support.microsoft.com/en-us/help/981684/when-you-connect-to-a-web-service-by-using-an-infopath-2010-form-that&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Can I set a default value for People Picker</title><link>https://www.infopathdev.com:443/forums/thread/120557.aspx</link><pubDate>Fri, 08 Mar 2019 22:43:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120557</guid><dc:creator>Teddybeardog</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120557.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=120557</wfw:commentRss><description>Hi Boonie:

Sorry I can&amp;#39;t help because I&amp;#39;m on SharePoint 2013.  But I&amp;#39;m trying to do the same thing.   I was trying to set it using a calculated value and username() but the name just gets updated with the next person who opens the form.   Since you used the form load rule before, what version of InfoPath and SharePoint were you on?</description></item><item><title>Can I set a default value for People Picker</title><link>https://www.infopathdev.com:443/forums/thread/120556.aspx</link><pubDate>Fri, 08 Mar 2019 21:05:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120556</guid><dc:creator>Michael Boonie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120556.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=120556</wfw:commentRss><description>Hi, all.&lt;br /&gt;&lt;br /&gt;

As I recall, in the past, I was able to set the default value of a People Picker control by setting it&amp;#39;s AccountID value on &lt;b&gt;Form Load&lt;/b&gt;. That trick no longer seems to work for me.&lt;br /&gt;
&lt;br /&gt;
I&amp;#39;m using Windows 10 and SharePoint Online. The form is a proper browser-enabled Forms Library form, not a customized List Form (although that doesn&amp;#39;t seem to make a difference.) On Form Load, I set the &lt;b&gt;AccountID&lt;/b&gt; value of the control to the email of the current user. I have (temporarily) placed calculated-value controls on the form, so I can see what the value of everything is, and while I can see that the &lt;b&gt;AccountID&lt;/b&gt; was indeed set, the &lt;b&gt;DisplayName&lt;/b&gt; and &lt;b&gt;Account Type&lt;/b&gt; are still blank. I&amp;#39;ve also tried this with the un-trimmed username(), including the funky preface &amp;quot;i:0#.f|membership|...&amp;quot;, but that didn&amp;#39;t help.&lt;br /&gt;
&lt;br /&gt;
Has anyone else been able to accomplish this using SPO and a browser enabled form? It seems a little lame to have to ask the user to pick their own name!&lt;br /&gt;
&lt;br /&gt;
Thanks in advance for any help or insight...&lt;br /&gt;
&lt;br /&gt;
-Boonie</description></item></channel></rss>