I tried this, how to make mandatory in child doctype, and it doesn’t work
frappe.ui.form.on('Quotation Item', {
sourcing_link: function (frm, cdt, cdn) {
var d = locals[cdt][cdn];
msgprint("Hey there");
frm.set_df_property('sourcing_link2', 'reqd',1);
}
});
It works on Parent Doctype
frm.set_df_property('sourcing_link2', 'reqd',1);