Hi @GhadaEbrahim,
That for, please apply the client script.
We applied on Sales Invoice.
Cursor put it in the right place and then will show the output.
For Parent DocType:
frappe.ui.form.on('Sales Invoice', {
refresh: function(frm) {
frm.fields_dict.customer.$input.on('mouseover', function() {
frm.fields_dict.customer.$input.attr('title', frm.doc.customer);
});
}
});
For Child Table:
frappe.ui.form.on('Sales Invoice', {
refresh: function(frm) {
frm.fields_dict.items.grid.wrapper.on('mouseover', '.grid-body [data-fieldname="description"]', function(event) {
var $description = $(event.target);
var description = $description.text().trim();
$description.attr('title', description);
});
}
});
Output:
I hope this helps.
Thank You!
2 Likes