on_form_rendered not triggering

Hi guys, I’ve been trying to get this trigger working for a Purchase Invoice but it doesn’t seem to work. Basically it should print hello in the console once a row is added to the Purchase Invoice Items table. Any ideas?

frappe.ui.form.on(“Purchase Invoice Item”, “items_on_form_rendered”, function(frm, cdt, cdn) {
console.log(“hello”);
});

@bohlian use form_render and the correct case is:

frappe.ui.form.on("Purchase Invoice Item", "form_render", function(frm, cdt, cdn){

});
2 Likes

@max_morais_dmm thank you!

This topic was automatically closed 23 hours after the last reply. New replies are no longer allowed.