<?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 Re: UI Action pulls the wrong field? in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/ui-action-pulls-the-wrong-field/m-p/3000807#M525034</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/179137"&gt;@JP-ODU&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use &lt;STRONG&gt;g_form.getDisplayBox('caller_id').value;&lt;/STRONG&gt; Instead of&amp;nbsp;g_form.getDisplayValue("caller_id");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.servicenow.com/bundle/washingtondc-api-reference/page/app-store/dev_portal/API_reference/GlideForm/concept/c_GlideFormAPI.html#title_GF-getDisplayBox_S" target="_blank"&gt;https://docs.servicenow.com/bundle/washingtondc-api-reference/page/app-store/dev_portal/API_reference/GlideForm/concept/c_GlideFormAPI.html#title_GF-getDisplayBox_S&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jul 2024 12:47:15 GMT</pubDate>
    <dc:creator>Voona Rohila</dc:creator>
    <dc:date>2024-07-26T12:47:15Z</dc:date>
    <item>
      <title>UI Action pulls the wrong field?</title>
      <link>https://www.servicenow.com/community/itsm-forum/ui-action-pulls-the-wrong-field/m-p/3000800#M525033</link>
      <description>&lt;P&gt;I've been trying to use this script for a UI Action button that will pre-fill additional comments with a salutation and sign-off. The trouble is, what seems to very clearly say caller ID to me in the script keeps pasting incident Number into that space of additional comments, instead?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I missing?&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 writeComment(){
	var message = "Dear " + g_form.getDisplayValue("caller_id") + ", &amp;lt;insert comments here&amp;gt;\n\n\n" + " Best regards, " + g_user.getUserName();
	g_form.setValue("comments", message);
	g_form.getControl("comments").focus();
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yields:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="additional comments.png" style="width: 610px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/374761i62875E502C7DB220/image-size/large?v=v2&amp;amp;px=999" role="button" title="additional comments.png" alt="additional comments.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 12:37:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/ui-action-pulls-the-wrong-field/m-p/3000800#M525033</guid>
      <dc:creator>JP-ODU</dc:creator>
      <dc:date>2024-07-26T12:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: UI Action pulls the wrong field?</title>
      <link>https://www.servicenow.com/community/itsm-forum/ui-action-pulls-the-wrong-field/m-p/3000807#M525034</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/179137"&gt;@JP-ODU&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use &lt;STRONG&gt;g_form.getDisplayBox('caller_id').value;&lt;/STRONG&gt; Instead of&amp;nbsp;g_form.getDisplayValue("caller_id");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.servicenow.com/bundle/washingtondc-api-reference/page/app-store/dev_portal/API_reference/GlideForm/concept/c_GlideFormAPI.html#title_GF-getDisplayBox_S" target="_blank"&gt;https://docs.servicenow.com/bundle/washingtondc-api-reference/page/app-store/dev_portal/API_reference/GlideForm/concept/c_GlideFormAPI.html#title_GF-getDisplayBox_S&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 12:47:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/ui-action-pulls-the-wrong-field/m-p/3000807#M525034</guid>
      <dc:creator>Voona Rohila</dc:creator>
      <dc:date>2024-07-26T12:47:15Z</dc:date>
    </item>
  </channel>
</rss>

