Update value in child table

Im trying to update the Score Value when Input Raw Marks.
Here is my custom script

frappe.ui.form.on(“Assessment Result Detail”, “raw_marks”, function(frm, cdt, cdn) {
console.log(“I am there”);
var item = locals[cdt][cdn];
var result = (item.raw_marks * item.maximux_score)/100;
frappe.model.set_value(cdt, cdn, ‘score’, result);


Calculating Values in Child Tables section in this documentation should help.


1 Like

thanks that was very good documentation.