diff --git a/frappe/core/doctype/server_script/server_script.js b/frappe/core/doctype/server_script/server_script.js index 4c007696cb..7a899ed0af 100644 --- a/frappe/core/doctype/server_script/server_script.js +++ b/frappe/core/doctype/server_script/server_script.js @@ -28,9 +28,13 @@ frappe.ui.form.on("Server Script", { check_safe_exec(frm) { frappe.xcall("frappe.core.doctype.server_script.server_script.enabled").then((enabled) => { if (enabled === false) { + let docs_link = + "https://frappeframework.com/docs/user/en/desk/scripting/server-script"; + let docs = `${__("Official Documentation")}`; + frm.dashboard.clear_comment(); let msg = __("Server Scripts feature is not available on this site.") + " "; - msg += __("Please contact your system administrator to enable this feature."); + msg += __("To enable server scripts, read the {0}.", [docs]); frm.dashboard.add_comment(msg, "yellow", true); } });