I m trying to run event on child table field in webform but i am unable to do it how we can do that
Use tHIS
frappe.web_form.after_load = () => {
// Access the child table ‘items’
frappe.web_form.fields_dict[‘items’].grid.wrapper.on(‘click’, ‘.grid-row’, function(event) {
let $row = $(this);
// Check if the item_code field was clicked
if ($row.find(‘[data-fieldname=“item_code”]’).length) {
frappe.msgprint({
title: __(‘Alert’),
message: __(‘You clicked on the item code field.’),
indicator: ‘blue’
});
}
});
};