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) { ```