<?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 Embedded list in servicenow in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/embedded-list-in-servicenow/m-p/3375774#M4560</link>
    <description>&lt;P&gt;On the native UI form, we have added an embedded list. We want the system to calculate the total claim amount&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;only when the user enters data into the embedded list&lt;/STRONG&gt;, and update the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Total Claim Amount&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;field accordingly.&lt;BR /&gt;It will make calculate the total of claim field which is in the embedded list and total will store into the total claim amount field.&lt;/P&gt;&lt;P&gt;i.e. currently we have two records in the embedded list so the total of claim amount is 958 so it will 958 in the total claim field&lt;/P&gt;&lt;P&gt;This calculation should happen&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;before the form is submitted&lt;/STRONG&gt;, without saving the claim record.&lt;/P&gt;&lt;P&gt;Currently, we are able to achieve this calculation&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;on form submission&lt;/STRONG&gt;, but our requirement is to perform the calculation&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;before the form is submitted&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Praju_123_0-1757498791876.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/468809iD1530C9C8C0F70BF/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Praju_123_0-1757498791876.png" alt="Praju_123_0-1757498791876.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Wed, 10 Sep 2025 10:19:49 GMT</pubDate>
    <dc:creator>Praju_123</dc:creator>
    <dc:date>2025-09-10T10:19:49Z</dc:date>
    <item>
      <title>Embedded list in servicenow</title>
      <link>https://www.servicenow.com/community/community-central-forum/embedded-list-in-servicenow/m-p/3375774#M4560</link>
      <description>&lt;P&gt;On the native UI form, we have added an embedded list. We want the system to calculate the total claim amount&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;only when the user enters data into the embedded list&lt;/STRONG&gt;, and update the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Total Claim Amount&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;field accordingly.&lt;BR /&gt;It will make calculate the total of claim field which is in the embedded list and total will store into the total claim amount field.&lt;/P&gt;&lt;P&gt;i.e. currently we have two records in the embedded list so the total of claim amount is 958 so it will 958 in the total claim field&lt;/P&gt;&lt;P&gt;This calculation should happen&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;before the form is submitted&lt;/STRONG&gt;, without saving the claim record.&lt;/P&gt;&lt;P&gt;Currently, we are able to achieve this calculation&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;on form submission&lt;/STRONG&gt;, but our requirement is to perform the calculation&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;before the form is submitted&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Praju_123_0-1757498791876.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/468809iD1530C9C8C0F70BF/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Praju_123_0-1757498791876.png" alt="Praju_123_0-1757498791876.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 10 Sep 2025 10:19:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/embedded-list-in-servicenow/m-p/3375774#M4560</guid>
      <dc:creator>Praju_123</dc:creator>
      <dc:date>2025-09-10T10:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Embedded list in servicenow</title>
      <link>https://www.servicenow.com/community/community-central-forum/embedded-list-in-servicenow/m-p/3375784#M4561</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/588162"&gt;@Praju_123&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can run after insert BR on your embedded list table and then sum up all the values for the parent and update the parent record.&lt;/P&gt;
&lt;P&gt;With this if you see the updated value on form then good.&lt;/P&gt;
&lt;P&gt;if this doesn't work then your user need to reload the form.&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 10:26:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/embedded-list-in-servicenow/m-p/3375784#M4561</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-09-10T10:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Embedded list in servicenow</title>
      <link>https://www.servicenow.com/community/community-central-forum/embedded-list-in-servicenow/m-p/3375801#M4564</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/588162"&gt;@Praju_123&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can achieve this using the &lt;STRONG&gt;onCellEdit&lt;/STRONG&gt; functionality on the embedded list.&lt;/P&gt;&lt;P&gt;Since your requirement is to calculate the total claim amount &lt;STRONG&gt;before the record is submitted&lt;/STRONG&gt; (while the user is editing the embedded list), a Business Rule won’t work because that only runs after save. Instead, you can configure an &lt;STRONG&gt;onCellEdit Client Script&lt;/STRONG&gt; on the child table (the one shown in the embedded list).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ifti122_0-1757500728120.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/468826iC27E15E79995FBE7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ifti122_0-1757500728120.png" alt="ifti122_0-1757500728120.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How it works:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;The &lt;STRONG&gt;onCellEdit&lt;/STRONG&gt; script runs as soon as a user edits a cell in an editable list.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;You can capture changes to the &lt;STRONG&gt;Claim Amount&lt;/STRONG&gt; field, sum up all claim line values, and then use g_form.setValue() to update the &lt;STRONG&gt;Total Claim Amount&lt;/STRONG&gt; field on the parent form dynamically.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;This way, the parent field is updated in real time without saving the form.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In short: &lt;STRONG&gt;Yes, it’s possible,&amp;nbsp;&lt;/STRONG&gt;configure an &lt;STRONG&gt;onCellEdit script on the child table&lt;/STRONG&gt;, calculate the total of the claim amount field, and set that total into the parent form’s &lt;STRONG&gt;Total Claim Amount&lt;/STRONG&gt; field.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;Thanks &amp;amp; Regards,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Muhammad Iftikhar&lt;/STRONG&gt;&lt;BR /&gt;&lt;I&gt;If my response helped, please mark it as the accepted solution so others can benefit as well.&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 10:39:55 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/embedded-list-in-servicenow/m-p/3375801#M4564</guid>
      <dc:creator>miftikhar20</dc:creator>
      <dc:date>2025-09-10T10:39:55Z</dc:date>
    </item>
  </channel>
</rss>

