<?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 Default Value using field's data in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/default-value-using-field-s-data/m-p/3294916#M3464</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When we create a &lt;STRONG&gt;child incident&lt;/STRONG&gt; from a parent, some fields (like &lt;EM&gt;Parent Incident&lt;/EM&gt; and &lt;EM&gt;Short Description&lt;/EM&gt;) are automatically populated when the child form opens. I’ve created a custom field called u_parent1, and I’d like this field to also be automatically filled when the child incident form is opened.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Specifically, I want u_parent1 to be populated with the &lt;STRONG&gt;sys_id of the caller of the parent incident&lt;/STRONG&gt;. This should happen &lt;STRONG&gt;as soon as the child form opens&lt;/STRONG&gt;, before the user enters or saves any data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to set this value using the &lt;STRONG&gt;Default Value&lt;/STRONG&gt; property in the dictionary with something like current.parent_incident.caller_id.sys_id, but it doesn't work — I assume because that context isn’t available when the form loads. In attachments, we can see an image with that approach.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how I could achieve this behavior?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jun 2025 14:38:16 GMT</pubDate>
    <dc:creator>Daniel Vieira</dc:creator>
    <dc:date>2025-06-20T14:38:16Z</dc:date>
    <item>
      <title>Default Value using field's data</title>
      <link>https://www.servicenow.com/community/community-central-forum/default-value-using-field-s-data/m-p/3294916#M3464</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When we create a &lt;STRONG&gt;child incident&lt;/STRONG&gt; from a parent, some fields (like &lt;EM&gt;Parent Incident&lt;/EM&gt; and &lt;EM&gt;Short Description&lt;/EM&gt;) are automatically populated when the child form opens. I’ve created a custom field called u_parent1, and I’d like this field to also be automatically filled when the child incident form is opened.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Specifically, I want u_parent1 to be populated with the &lt;STRONG&gt;sys_id of the caller of the parent incident&lt;/STRONG&gt;. This should happen &lt;STRONG&gt;as soon as the child form opens&lt;/STRONG&gt;, before the user enters or saves any data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to set this value using the &lt;STRONG&gt;Default Value&lt;/STRONG&gt; property in the dictionary with something like current.parent_incident.caller_id.sys_id, but it doesn't work — I assume because that context isn’t available when the form loads. In attachments, we can see an image with that approach.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how I could achieve this behavior?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 14:38:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/default-value-using-field-s-data/m-p/3294916#M3464</guid>
      <dc:creator>Daniel Vieira</dc:creator>
      <dc:date>2025-06-20T14:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Default Value using field's data</title>
      <link>https://www.servicenow.com/community/community-central-forum/default-value-using-field-s-data/m-p/3295022#M3465</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/102672"&gt;@Daniel Vieira&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;just put this in the default value&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChaitanyaILCR_1-1750437400268.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/449967iE6B347E65634D677/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChaitanyaILCR_1-1750437400268.png" alt="ChaitanyaILCR_1-1750437400268.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;it's (:) not &amp;amp;colon;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;javascript&amp;amp;colon;current.parent_incident.caller_id&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also check which is the linking field here is Parent field or Parent Incident field (based on that replace parent_incident with parent if you are using parent)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Please mark my answer as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;FONT color="#008000"&gt;helpful/correct&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/STRONG&gt;if it resolves your query.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Regards,&lt;BR /&gt;Chaitanya&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 16:38:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/default-value-using-field-s-data/m-p/3295022#M3465</guid>
      <dc:creator>Chaitanya ILCR</dc:creator>
      <dc:date>2025-06-20T16:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Default Value using field's data</title>
      <link>https://www.servicenow.com/community/community-central-forum/default-value-using-field-s-data/m-p/3309632#M3589</link>
      <description>&lt;P&gt;I’ve handled this in ServiceNow by using a business rule or client script on form load. You can fetch a value from a related field or table and set it as the default dynamically. Just make sure to add proper conditions to avoid overwriting user input. It’s a clean way to streamline form completion without hardcoding values.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 15:35:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/default-value-using-field-s-data/m-p/3309632#M3589</guid>
      <dc:creator>StephenR0086629</dc:creator>
      <dc:date>2025-07-03T15:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Default Value using field's data</title>
      <link>https://www.servicenow.com/community/community-central-forum/default-value-using-field-s-data/m-p/3314568#M3658</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/909699"&gt;@StephenR0086629&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’ve built a solution in Workspace to automatically populate the &lt;STRONG&gt;Source&lt;/STRONG&gt; field when creating a new HR Case, based on the &lt;STRONG&gt;parent case's&lt;/STRONG&gt; value — but my current approach depends on the &lt;STRONG&gt;URL&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When we reach &lt;STRONG&gt;step 2&lt;/STRONG&gt; of the "Create New Case" flow in Workspace, the parent case's sys_id is available in the URL. I use a &lt;STRONG&gt;Client Script&lt;/STRONG&gt; and a &lt;STRONG&gt;Script Include&lt;/STRONG&gt; to retrieve the parent’s Source value and populate it into the child case. This works — but only because I check the URL to know I’m in step 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’d like to find a more &lt;STRONG&gt;robust and upgrade-safe solution&lt;/STRONG&gt; that does &lt;STRONG&gt;not rely on the URL&lt;/STRONG&gt;. Since URL structures can change in future releases, I want to detect the current step (step 1 vs step 2) through a more stable method — ideally using Workspace context or component state.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Does you know a way to detect which step of the Workspace form flow we’re in, without using the URL?&lt;/STRONG&gt;&lt;BR /&gt;Or do you have an alternative approach to this scenario?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 17:41:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/default-value-using-field-s-data/m-p/3314568#M3658</guid>
      <dc:creator>Daniel Vieira</dc:creator>
      <dc:date>2025-07-08T17:41:17Z</dc:date>
    </item>
  </channel>
</rss>

