I have a Parent table ‘Lab Test’, and a child table ‘Normal Test Result’.
On load of the document, I want to retail the cell color in a child table that I changes on condition.
Basically, I want to run some code when the document loads.
I have tried the below but to success:
frappe.ui.form.on("Normal Test Result", "form_render", function(frm, cdt, cdn){
// Code here
});
frappe.ui.form.on('Lab Test', {
normal_test_items_on_form_rendered: (frm) => {
// Code here
}
});
frappe.ui.form.on("Lab Test", "normal_test_items_on_form_rendered", function(frm, cdt, cdn){
// Code here
});
Please let me know whether you notice any anomaly in my code that causes it not to work, or maybe if you have any other way to do it, pleas share.
Regards,
Karani.