I want to trigger function every time I open page.
For now, I am using onload function like this:
frappe.ui.form.on(MyDoctype, {
onload: function(frm) {
onload function here;
}
});
But I just found out that onload function only triggered at the first time I open the route (URL), if I change URL/route, and then I back to that URL(route) again the onload function didn’t call.
How to solve it?
Thanks before.