Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2024 02:40 PM
Hi guys, I need to create this sum field for my custom table, any ideas on how to do it?
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2024 03:04 PM
Hi @felipe14
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue === '') {
return;
}
var field1 = g_form.getValue('field1'); //change the field name
var field2 = g_form.getValue('field2'); // change the field name
var sum = field1 + field2;
g_form.setValue('sum_field', sum);//change the field name
}
Thanks and Regards
Sai Venkatesh
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2024 03:04 PM
Hi @felipe14
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue === '') {
return;
}
var field1 = g_form.getValue('field1'); //change the field name
var field2 = g_form.getValue('field2'); // change the field name
var sum = field1 + field2;
g_form.setValue('sum_field', sum);//change the field name
}
Thanks and Regards
Sai Venkatesh
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2024 05:54 AM - edited 09-16-2024 05:55 AM
Will this work in the related list like this?