hi experts
How can I prevent a user fro changing the assigned default language.
Best regards
1 Like
You can use a Custom Script
like this for your case. You can customize it to your needs.
frappe.ui.form.on("User", "validate", function(frm) {
if (frm.doc.language != "en" && frappe.session.user != 'Administrator') {
msgprint("You can not change the language!");
validated = false;
}
});
2 Likes
Thanks yefritavarez