I cannot able to disable the drag and drop in child table. Any help will be highly commendable
I disabled it by using this client script in the parent doctype:
function disable_drag_drop(frm) {
frm.page.body.find('[data-fieldname="items"] [data-idx] .data-row .sortable-handle').removeClass('sortable-handle'); // change 'items' to the child table field name
}
frappe.ui.form.on('Delivery Note', {
refresh(frm) {
disable_drag_drop(frm);
},
onload(frm){
disable_drag_drop(frm);
}
})
5 Likes