if child table field item group = tower then i want change property of field present in parent doctype so how will i implement in
items: function(frm) {
frm.doc.items.forEach(function(item) {
if(item.item_group == "Tower"){
frm.set_df_property('custom_site_picture_post_installation', 'read_only', 1)
frm.set_df_property('custom_site_picture_pre_installation', 'read_only', 1)
}
});
}
}); ```
I try this way but not working and also tried all child events but not success?