<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question How to override record picker close/reset button ? in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/how-to-override-record-picker-close-reset-button/m-p/3317025#M3676</link>
    <description>&lt;P&gt;&amp;nbsp;As per the requirement, on reset/close of record picker it should not reset all the data bind to the controller. Is there any way to do it? Right now record picker on reset it clears all the values bound the the component. which also clears the result set displaying. user just wants to clear selected value and not the records in record picker. Tried saving the value in another variable but using value field and ng-model but its not working.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jul 2025 11:53:56 GMT</pubDate>
    <dc:creator>AmitK9211638133</dc:creator>
    <dc:date>2025-07-10T11:53:56Z</dc:date>
    <item>
      <title>How to override record picker close/reset button ?</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-override-record-picker-close-reset-button/m-p/3317025#M3676</link>
      <description>&lt;P&gt;&amp;nbsp;As per the requirement, on reset/close of record picker it should not reset all the data bind to the controller. Is there any way to do it? Right now record picker on reset it clears all the values bound the the component. which also clears the result set displaying. user just wants to clear selected value and not the records in record picker. Tried saving the value in another variable but using value field and ng-model but its not working.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 11:53:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-override-record-picker-close-reset-button/m-p/3317025#M3676</guid>
      <dc:creator>AmitK9211638133</dc:creator>
      <dc:date>2025-07-10T11:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to override record picker close/reset button ?</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-override-record-picker-close-reset-button/m-p/3317054#M3677</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/822232"&gt;@AmitK9211638133&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;sn-record-picker
  value="c.data.selectedUser"
  table="'sys_user'"
  display-field="'name'"
  search-fields="'name,email'"
  on-change="c.onUserChanged()"&amp;gt;
&amp;lt;/sn-record-picker&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your Client Controller script :-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;c.onUserChanged = function () {
  if (c.data.selectedUser) {
    // User selected — fetch related data
    c.data.resultSet = fetchDataBasedOnUser(c.data.selectedUser);
  } else {
    // Do NOT clear resultSet — just leave it as-is
    // Optionally: let user manually clear result if needed
  }
};
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;!--StartFragment --&gt;&lt;/P&gt;
&lt;P class="pf0"&gt;&lt;SPAN class="cf0"&gt;Pls mark my solution as accept and thumbs up if you find it helpful. It will help other users on community to find helpful response.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="pf0"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="pf0"&gt;&lt;SPAN class="cf0"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="pf0"&gt;&lt;SPAN class="cf0"&gt;Samaksh Wani&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;!--EndFragment --&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 12:13:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-override-record-picker-close-reset-button/m-p/3317054#M3677</guid>
      <dc:creator>Samaksh Wani</dc:creator>
      <dc:date>2025-07-10T12:13:54Z</dc:date>
    </item>
  </channel>
</rss>

