FAQ: How to combine values from multiple items and automatically enter them into one item
## Answer
Use "[Script](/en/manual/table-management-script)".
---
## Overview
Use "[Script](/en/manual/table-management-script)" if you want to combine values of the same type set in multiple items (add them if they are numbers) and enter that value in a specified item.
## Operation
1. Create a record table.
1. Enable Category A, Category B, and Category C.
1. Update the following script by creating a new one in "[Script](/en/manual/table-management-script)" and checking "Create new" and "Edit" as the output destination.
## Sample Code
##### JavaScript
```
$(document).on('change', '#' + $p.getControl('ClassA')[0].id, '#' + $p.getControl('ClassB')[0].id, function () {
const A = $p.getControl('ClassA').val();
const B = $p.getControl('ClassB').val();
$p.set($p.getControl('ClassC'), A + B);
})
```
## Related Information
<div id="ManualList"><ul><li><a href="/en/manual/table-management-script">Table Management: Script</a><span>08.13.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />