I set up a new Frappe 16 site and installed Frappe & My custom apps. All worked well. Now, when I’m trying to create a record using the QuickEntry form for DocType, it never auto-closes.
I can see some errors in the console as
I faced the similar issue in new account quick entey
Can you share your app versions?
I am not able to replicate
Seems This Issue Comes When DocType has “autoname”: “autoincrement”
Able to fix in apps/frappe/frappe/public/js/frappe/form/quick_entry.js Line no 203
Fix
Replace let name_str = me.doc.name ? String(me.doc.name) : “”; With
let name_str = me.doc.name ? String(me.doc.name) : "";
let messagetxt = __("{1} saved", [__(me.doctype), `<b>${name_str}</b>`]);
AI Generated Response
There were two problems here:
.bold() is a deprecated, non-standard JavaScript String method: It is not safe to use and isn’t supported on all types.
me.doc.name can be a Number or undefined: If the Doctype is autonamed with a series (like a number 123), me.doc.name is a Number rather than a String. Since JavaScript numbers do not have a .bold() method, the code threw: Uncaught (in promise) TypeError: me.doc.name.bold is not a function
AI Generated Investigation
It actually is still present in the upstream Frappe v16 branch because it’s a legacy piece of code that hasn’t been fully refactored yet in all places.
If we check the repository:
name.bold() is a deprecated, non-standard JavaScript helper function. In standard modern JavaScript, calling .bold() on a string wraps it in <b>...</b> tags.
In many browsers, this method still works for standard strings as a backward-compatibility feature.
However, if the document’s name is a Number (e.g. for autonamed sequence numbers like 1, 2, 1001), .bold() throws a TypeError on numbers because Number.prototype.bold does not exist.
Because the issue only happens for doctypes with numeric names, it likely slipped through the upstream QA checks and remains in the latest version.