How can I prevent duplicate entries from being selected when using the ‘Add Multiple’ button in the child table?
frappe.ui.form.on(‘Training Attendance Entries’, {
refresh: function (frm) {
frm.get_field(“attendees”).grid.set_multiple_add(“employee”);
}
});
In my code, I am using the Add Multiple
button to select multiple employees in the attendees
child table of the Training Attendance Entries
doctype.