From d80006ac59ecfd73fc3ff415de037ab637be8605 Mon Sep 17 00:00:00 2001 From: sokumon Date: Fri, 17 Jan 2025 16:18:05 +0530 Subject: [PATCH] fix(ux): helpful links added while creating email account --- .../email/doctype/email_account/email_account.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/frappe/email/doctype/email_account/email_account.js b/frappe/email/doctype/email_account/email_account.js index f76a175b24..d8e0f57506 100644 --- a/frappe/email/doctype/email_account/email_account.js +++ b/frappe/email/doctype/email_account/email_account.js @@ -126,6 +126,22 @@ frappe.ui.form.on("Email Account", { frm.set_value(key, value); }); } + // For better UX + if (frm.doc.service == "GMail") { + console.log("hello"); + frm.set_df_property( + "password", + "description", + 'To generate password visit here' + ); + } + if (frm.doc.service == "Frappe Mail") { + frm.set_df_property( + "api_secret", + "description", + 'To know more visit here' + ); + } }, use_imap: function (frm) {