From fe920a374e0f016b4b1668e0d8499ce5092e30cb Mon Sep 17 00:00:00 2001 From: Tropicalrambler Date: Fri, 24 Nov 2017 21:41:41 -0600 Subject: [PATCH] closing curly brackets, parentheses and semicolon! --- Community-Developed-Custom-Scripts.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Community-Developed-Custom-Scripts.md b/Community-Developed-Custom-Scripts.md index 67cfe93..20ed342 100644 --- a/Community-Developed-Custom-Scripts.md +++ b/Community-Developed-Custom-Scripts.md @@ -113,6 +113,8 @@ frappe.ui.form.on("[PARENT_DOCTYPE_TARGET]", "refresh", function(frm) { frm.add_fetch("[CHILD_TABLE_LINK FIELD]", "[SOURCE_CUSTOM_FIELD2]", "[SOURCE_CUSTOM_FIELD2]"); } }); + +}); ``` Note: If you wish to fetch data for a field within the parent doctype, then, add the frm.add_fetch line immediately below the line ```frappe.ui.form.on("[PARENT_DOCTYPE_TARGET]", "refresh", function(frm) { ```