- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2022 05:00 AM
My requirement :
I have created choice field with 0,1,3,9 choices. i need to multiply with 10 and caluculate total value and display in Total field.
If user selects 3 in first field i need to multiply with 3*10 and populate total value into Toatl field.
I need to configure same functionality for five fields.
please help on this script.
Thanks,
Prasad.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2022 05:12 AM
hello,
Write a onchange client script on the number field that whenever someone chooses a number total score is filled
Please use the below script
var num= g_form.getValue('fieldname');
var multiply=parseInt(num)*10;
g_form.setValue('totalscore_fieldname',multiply);
Please mark answer correct/helpful based on Impact

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2022 05:12 AM
You can create onChange client script on "Reduce Working Capital" field and add the below script:
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (newValue === '') {
g_form.setValue('u_total_score','0');
// Replace u_total_score with actual field name of Total Score
}
var value = parseInt(newValue) * 10;
g_form.setValue('u_total_score',value.toString());
// Replace u_total_score with actual field name of Total Score
}
Repeat same for other fields
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2022 05:12 AM
hello,
Write a onchange client script on the number field that whenever someone chooses a number total score is filled
Please use the below script
var num= g_form.getValue('fieldname');
var multiply=parseInt(num)*10;
g_form.setValue('totalscore_fieldname',multiply);
Please mark answer correct/helpful based on Impact