I Have ERPNEXT V13 in the material request form Employee field is mandatory and its showing Employee ID I want Employee Name to show please guide how I can do it
Add one more custom field and keep datatype Data then add employee.employee_name in Add Fetch Option.
try this
frappe.ui.form.on('Material Request', 'before_Save', function(frm) {
frappe.db.get_value('Employee', {'name':cur_frm.doc.emp}, 'employee_name')
.then(response => {
frm.doc.emp_name = response['message']['employee_name'];
})}
);
not working
This option is not available in ERPNEXT V13