erro in mrvs
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2025 11:29 AM
i want to calculate the sum of the value in multi row variable set?
below is the script
function onSubmit() {
//Type appropriate comment here, and begin script below
var count = 0;
var mrvsData = g_form.getValue("abcd"); //replace with mrvs internal name
var mrvsDatastr = JSON.parse(mrvsData);
for (var i = 0; i < mrvsDatastr.length; i++) {
count = count + parseInt(mrvsDatastr[i].amt); //map your variable names
}
g_form.setValue("aa", count); //map variable name where you want to set
}
error = 
Dont know what i am doing wrong
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2025 12:45 PM