Can someone who understands the architecture of frappe well, say a little bit about reactivity in frappe? Basically is it possible (without adding framework like svelte) to automatically update another field by interacting in other field?
If you’re looking for reactive streams, pipe operations, operators, it is not available. Add your favourite js lib and use it. Try using rxjs with form js api instead of completely ditching form api for a frontend framework.
Ok, sorry my bad. It works as @Yamen_Zakhour said, after a tiny delay. I remember it not working so well for me before, but maybe that was my mistake.
However, child table field triggers the action only after you focus out of that field. Which is kinda annoying.
frappe.ui.form.on("Child table", {
field_that_trigers(frm) {
function the_function(){}
the_function(frm);
// not sure why this wont work
frm.trigger("the_function");
}
});