This website works better with JavaScript.
Home
Explore
Help
Sign In
anoopmb
/
frappe
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
fix: mandatory fields validation on new form from js
version-14
Daizy
3 years ago
parent
90c8e3e258
commit
fb20b0ee2d
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
frappe/public/js/frappe/form/save.js
+ 1
- 0
frappe/public/js/frappe/form/save.js
View File
@@ -148,6 +148,7 @@ frappe.ui.form.save = function (frm, action, callback, btn) {
});
if (frm.is_new() && frm.meta.autoname === 'Prompt' && !frm.doc.__newname) {
has_errors = true;
error_fields = [__('Name'), ...error_fields];
}
Write
Preview
Loading…
Cancel
Save