<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/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>Autopopulate to become null on cancel</title><link>https://community.appian.com/discussions/f/user-interface/14653/autopopulate-to-become-null-on-cancel</link><description>Hi All, 
 i have a PickerFieldUser, which am auto-populating, but the user can cancel the auto-populated value and key in other entry, 
 auto-populating the user field is working fine, how can i make the field null when the user takes out the auto-populated</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Autopopulate to become null on cancel</title><link>https://community.appian.com/thread/65801?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 17:24:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:06bda43d-0dca-45a9-bdb8-712c3de5faa6</guid><dc:creator>vineethk0001</dc:creator><description>&lt;p&gt;Thanks Vivek&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Autopopulate to become null on cancel</title><link>https://community.appian.com/thread/65798?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 15:42:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e347d22d-2c72-43fc-9bd2-2ec090322032</guid><dc:creator>viveku3486</dc:creator><description>&lt;p&gt;Hello Vineeth,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Give this code a try, It will work for you&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;a!pickerFieldUsers(&lt;br /&gt; label: &amp;quot;Requestor&amp;quot;,&lt;br /&gt; labelPosition: &amp;quot;JUSTIFIED&amp;quot;,&lt;br /&gt; maxSelections: 1,&lt;br /&gt; value: local!Applicant,&lt;br /&gt; saveinto: {&lt;br /&gt; local!Applicant,&lt;br /&gt; a!save(ri!Request_Inputs.Requestor,local!Applicant)&lt;br /&gt; },&lt;br /&gt; required: true,&lt;br /&gt; validations: {}&lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Autopopulate to become null on cancel</title><link>https://community.appian.com/thread/65707?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2019 09:51:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42edd1c0-baf8-4b73-8a1b-4beb240aa360</guid><dc:creator>vineethk0001</dc:creator><description>&lt;p&gt;sure, thanks a lot, will give this a try&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Autopopulate to become null on cancel</title><link>https://community.appian.com/thread/65706?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2019 09:50:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:911a063d-1a20-4eb2-a8df-da92bd98ac5f</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Ok.&amp;nbsp;Assuming your form is being loaded in a User&amp;nbsp;Input Task in a Process you can set the default value of the User being captured in the Task Activity Class variable (set to fn!loggedInUser()) so that your rule input has this value when the form is loaded. You can then let the User delete it and then select any other User they are allowed to select, saving the value to the same rule input.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Autopopulate to become null on cancel</title><link>https://community.appian.com/thread/65705?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2019 09:41:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a43cfd25-8175-4bc5-b967-1ae02e5c9e2e</guid><dc:creator>vineethk0001</dc:creator><description>&lt;p&gt;Hi Stewart, my requirement is , on form load the &amp;quot;PickerFieldUser&amp;quot; will be populated with Default user(Logged in user), say &amp;quot;User1&amp;quot; will be populated, now the user who is filling the form can keep this &amp;quot;User1&amp;quot; or delete it and add &amp;quot;User2&amp;quot;.&lt;/p&gt;
&lt;p&gt;now whats happening is , on form load am able to populate &amp;quot;PickerFiledUser&amp;quot; with Defalut User(Logged in user),&lt;/p&gt;
&lt;p&gt;but if the user wants to change this value and try to remove the default value to put &amp;quot;User2&amp;quot; into the field, its not leaving to do so, since as soon as i remove the defalut user, an event occurs by default (UNFOCUS or Keypress) which will again populate the &amp;quot;User1&amp;quot; into the field, not leaving me to key in &amp;quot;User2&amp;quot;,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;hope i was able to explain it properly&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Autopopulate to become null on cancel</title><link>https://community.appian.com/thread/65664?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 11:28:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:54e54473-00bc-432c-b436-2685eb9db747</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Ok, so I am confused. My original solution DOES satisfy your requirements. I tested it. So I don&amp;#39;t understand why you then said:&lt;/p&gt;
[quote userid="34007" url="~/discussions/f/user-interface/14653/autopopulate-to-become-null-on-cancel/65660"]this i tried Stewart , but its not working, as this field will be editable and user can remove the value present and add new value.[/quote]
&lt;p&gt;...as this indicates that this is NOT what you wanted...please help me to understand what it is you want as it&amp;#39;s not at all clear now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Autopopulate to become null on cancel</title><link>https://community.appian.com/thread/65662?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 11:13:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:99cb7cfa-5e91-4846-9fa9-1e43dc2282b2</guid><dc:creator>vineethk0001</dc:creator><description>&lt;p&gt;No No, i want to have default value, if the user wants he can remove this default value and add his own value,&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Autopopulate to become null on cancel</title><link>https://community.appian.com/thread/65661?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 11:10:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:84244462-098c-44f8-b319-5473ee867f75</guid><dc:creator>Stewart Burchell</dc:creator><description>[quote userid="34007" url="~/discussions/f/user-interface/14653/autopopulate-to-become-null-on-cancel"]i have a PickerFieldUser, which am auto-populating, but the user can cancel the auto-populated value and key in other entry,[/quote]
&lt;p&gt;That&amp;#39;s what you said you wanted to do! Do you mean you want a default value added and that the User can only ADD to this value and only remove the values they have added but NOT remove the default User value?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Autopopulate to become null on cancel</title><link>https://community.appian.com/thread/65660?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 10:55:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:59e4a94f-90fb-4ef0-9798-03a2424497b4</guid><dc:creator>vineethk0001</dc:creator><description>&lt;p&gt;this i tried Stewart , but its not working, as this field will be editable and user can remove the value present and add new value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Autopopulate to become null on cancel</title><link>https://community.appian.com/thread/65659?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 10:54:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6cd68bf6-1424-4dc3-bdb8-085066d2a00a</guid><dc:creator>vineethk0001</dc:creator><description>&lt;p&gt;Hi Prateek, sorry , its not working, it gives an error as null value cannot be passed , when i cancel the autopopulated user&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Autopopulate to become null on cancel</title><link>https://community.appian.com/thread/65658?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 10:28:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:630e0b8b-c602-4152-8cb4-3747c142767c</guid><dc:creator>PRATEEK BHATTI</dc:creator><description>&lt;p&gt;Give below code a try..as it works for me.&lt;/p&gt;
&lt;p&gt;a!pickerFieldUsers(&lt;br /&gt;label: &amp;quot;Requestor&amp;quot;,&lt;br /&gt;labelPosition: &amp;quot;JUSTIFIED&amp;quot;,&lt;br /&gt;maxSelections: 1,&lt;br /&gt;placeholder:&amp;quot;--Select a user--&amp;quot;,&lt;br /&gt;value: if(isnull(ri!&lt;span&gt;Request_Inputs.Requestor&lt;/span&gt;),local!Applicant,ri!&lt;span&gt;Request_Inputs.Requestor&lt;/span&gt;),&lt;br /&gt;saveinto:{ri!&lt;span&gt;Request_Inputs.Requestor&lt;/span&gt;,&lt;br /&gt;a!save(local!Applicant,null)},&lt;br /&gt;required: true,&lt;br /&gt;validations: {}&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Autopopulate to become null on cancel</title><link>https://community.appian.com/thread/65657?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 10:20:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2aee76a6-537f-40c0-8878-76716beea8f6</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Hi - I think you&amp;#39;re over-thinking this. If the default value is being supplied in the value of ri!&lt;span&gt;Request_Inputs then your&amp;nbsp;code should&amp;nbsp;simply be this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;a!pickerFieldUsers(&lt;br /&gt; label: &amp;quot;Requestor&amp;quot;,&lt;br /&gt; labelPosition: &amp;quot;JUSTIFIED&amp;quot;,&lt;br /&gt; maxSelections: 1,&lt;br /&gt; value: ri!Request_Inputs.Requestor,&lt;br /&gt; saveinto: {&lt;br /&gt; ri!Request_Inputs.Requestor&lt;br /&gt; },&lt;br /&gt; required: true,&lt;br /&gt; validations: {}&lt;br /&gt; )&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Autopopulate to become null on cancel</title><link>https://community.appian.com/thread/65655?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 09:41:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41c4b8ae-a3e6-4700-8312-18f509e55e00</guid><dc:creator>vineethk0001</dc:creator><description>&lt;p&gt;thanks for the reply Prateek , sorry but it dosen&amp;#39;t work , as soon as i delete the autopopulated name , it comes back&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Autopopulate to become null on cancel</title><link>https://community.appian.com/thread/65653?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 06:48:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f246d822-6a43-4258-9e0b-e0c5354da84c</guid><dc:creator>PRATEEK BHATTI</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/vineethk0001"&gt;vineethk0001&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Use &amp;quot;&lt;span&gt;placeholder&amp;quot; attribute to keep the user picker empty until user enter some other user.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;a!pickerFieldUsers(&lt;br /&gt;label: &amp;quot;Requestor&amp;quot;,&lt;br /&gt;labelPosition: &amp;quot;JUSTIFIED&amp;quot;,&lt;br /&gt;maxSelections: 1,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;placeholder:&amp;quot;--Select a user--&amp;quot;,&lt;br /&gt;value: local!Applicant,&lt;br /&gt;saveinto: a!save(ri!Request_Inputs.Requestor,local!Applicant),&lt;br /&gt;required: true,&lt;br /&gt;validations: {}&lt;br /&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Hope it helps!!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>