frappe.ui.form.on("Senior High Spreadsheets", "semester", function(frm) {
//console.log('hello')
frappe.call({
method: "wela.registration.doctype.senior_high_spreadsheets.senior_high_spreadsheets.get_subjects",
args: {
"semester": frm.doc.semester,
"strand": frm.doc.strand
},
callback: function (r) {
console.log('HELLO soy');
console.log(r.message["result"]);
//cur_frm.set_cur_list("grading_subject",r.message["result"]);
var x = r.message["result"]
}
});
})
my x is a list, and I want x to be the values in my "grading_subject field
my Doctype
the Form, in Grading Subject I want x to be the option(s)