<?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 populate caller field value in Virtual Agent forum</title>
    <link>https://www.servicenow.com/community/virtual-agent-forum/populate-caller-field-value/m-p/2946942#M8258</link>
    <description>&lt;P&gt;I have a string field on incident form.&lt;/P&gt;&lt;P&gt;I want to populate the caller field value on that string field on the incident form when caller field value is cahnged or incident form is loading.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please let me know how can I achieve it?&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2024 14:48:40 GMT</pubDate>
    <dc:creator>abhisek</dc:creator>
    <dc:date>2024-05-29T14:48:40Z</dc:date>
    <item>
      <title>populate caller field value</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/populate-caller-field-value/m-p/2946942#M8258</link>
      <description>&lt;P&gt;I have a string field on incident form.&lt;/P&gt;&lt;P&gt;I want to populate the caller field value on that string field on the incident form when caller field value is cahnged or incident form is loading.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please let me know how can I achieve it?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 14:48:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/populate-caller-field-value/m-p/2946942#M8258</guid>
      <dc:creator>abhisek</dc:creator>
      <dc:date>2024-05-29T14:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: populate caller field value</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/populate-caller-field-value/m-p/2946957#M8259</link>
      <description>&lt;P&gt;Hey mate, is this just for learning purpose or this is the actual business requirement?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 14:58:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/populate-caller-field-value/m-p/2946957#M8259</guid>
      <dc:creator>Anurag Tripathi</dc:creator>
      <dc:date>2024-05-29T14:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: populate caller field value</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/populate-caller-field-value/m-p/2947016#M8264</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/478083"&gt;@abhisek &lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to write&amp;nbsp; both Onchange client script as well as onload client script to populate string value, you can do this through 2 ways one is through calling script include and another is using getReference method as shown below,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function onChange(control, oldValue, newValue, isLoading, isTemplate) {
    if (isLoading || newValue === '') {
        return;
    }

    var abc = g_form.getReference('caller_id', currentUser1); // caller_id backend name
    return;
}

function currentUser1(abc) {

    g_form.setValue('u_caller_id_name', abc.name); // string field backend name
   
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="swathisarang98_0-1716997771051.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/360742i4B47037758C489F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="swathisarang98_0-1716997771051.png" alt="swathisarang98_0-1716997771051.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please mark this comment as Correct Answer/Helpful if it helped you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Swathi Sarang&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 15:50:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/populate-caller-field-value/m-p/2947016#M8264</guid>
      <dc:creator>swathisarang98</dc:creator>
      <dc:date>2024-05-29T15:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: populate caller field value</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/populate-caller-field-value/m-p/2948263#M8301</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/440798"&gt;@swathisarang98&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above script is not working.&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;Abhisek Chattaraj.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 15:05:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/populate-caller-field-value/m-p/2948263#M8301</guid>
      <dc:creator>abhisek</dc:creator>
      <dc:date>2024-05-30T15:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: populate caller field value</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/populate-caller-field-value/m-p/2948275#M8303</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/478083"&gt;@abhisek &lt;/a&gt;&amp;nbsp;what is the error you are getting ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please share some screen shot or what you have tried so far /&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please mark this comment as Correct Answer/Helpful if it helped you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Swathi Sarang&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 15:11:50 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/populate-caller-field-value/m-p/2948275#M8303</guid>
      <dc:creator>swathisarang98</dc:creator>
      <dc:date>2024-05-30T15:11:50Z</dc:date>
    </item>
  </channel>
</rss>

