hello community, Can anyone provide me with the js code for the “add element to child table” event ? thank you
var childTable = cur_frm.add_child(“table_field_name”);
childTable.lastname=r[0][“lastname”]
childTable.firstname=r[0][“firstname”]
cur_frm.refresh_fields(“table_field_name”);
wow thanks , I can use that , but that’s not what I am looking for. I want to trigger a function when I add an element to the child table
Here’s the documentation:
https://frappeframework.com/docs/v13/user/en/api/form#child-table-events
1 Like