{
 "actions": [],
 "allow_import": 1,
 "allow_rename": 1,
 "autoname": "drip_email.####",
 "creation": "2016-02-29 04:37:05.108042",
 "doctype": "DocType",
 "document_type": "Setup",
 "engine": "InnoDB",
 "field_order": [
  "enabled",
  "email_type",
  "product_trial",
  "subject",
  "column_break_7",
  "send_by_consultant",
  "sender_name",
  "sender",
  "reply_to",
  "pre_header",
  "section_break_ehlw",
  "condition",
  "column_break_jext",
  "html_pzsv",
  "section_break_9",
  "content_type",
  "message_html",
  "message_markdown",
  "message_rich_text",
  "section_break_4",
  "skip_sites_with_paid_plan",
  "send_after",
  "send_after_payment",
  "column_break_2",
  "section_break_25",
  "module_setup_guide"
 ],
 "fields": [
  {
   "default": "0",
   "fieldname": "enabled",
   "fieldtype": "Check",
   "label": "Enabled"
  },
  {
   "default": "Drip",
   "fieldname": "email_type",
   "fieldtype": "Select",
   "label": "Email Type",
   "options": "Drip\nSign Up\nSubscription Activation\nWhitepaper Feedback\nOnboarding"
  },
  {
   "fieldname": "subject",
   "fieldtype": "Small Text",
   "in_list_view": 1,
   "label": "Subject",
   "reqd": 1
  },
  {
   "fieldname": "column_break_7",
   "fieldtype": "Column Break"
  },
  {
   "default": "0",
   "fieldname": "send_by_consultant",
   "fieldtype": "Check",
   "label": "Send By Consultant"
  },
  {
   "fieldname": "sender_name",
   "fieldtype": "Data",
   "label": "Sender Name",
   "reqd": 1
  },
  {
   "fieldname": "sender",
   "fieldtype": "Data",
   "in_list_view": 1,
   "label": "Sender",
   "options": "Email",
   "reqd": 1
  },
  {
   "fieldname": "reply_to",
   "fieldtype": "Data",
   "label": "Reply To",
   "options": "Email"
  },
  {
   "fieldname": "section_break_9",
   "fieldtype": "Section Break",
   "label": "Content"
  },
  {
   "fieldname": "section_break_4",
   "fieldtype": "Section Break"
  },
  {
   "fieldname": "send_after",
   "fieldtype": "Int",
   "in_list_view": 1,
   "label": "Send After (Days)",
   "reqd": 1
  },
  {
   "default": "0",
   "fieldname": "send_after_payment",
   "fieldtype": "Check",
   "label": "Send After Payment"
  },
  {
   "default": "(1-7)",
   "fieldname": "column_break_2",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "pre_header",
   "fieldtype": "Data",
   "label": "Pre Header"
  },
  {
   "fieldname": "section_break_25",
   "fieldtype": "Section Break"
  },
  {
   "fieldname": "module_setup_guide",
   "fieldtype": "Table",
   "label": "Module Setup Guide",
   "options": "Module Setup Guide"
  },
  {
   "default": "0",
   "fieldname": "skip_sites_with_paid_plan",
   "fieldtype": "Check",
   "label": "Skip Sites With Paid Plan"
  },
  {
   "fieldname": "condition",
   "fieldtype": "Code",
   "label": "Condition"
  },
  {
   "fieldname": "html_pzsv",
   "fieldtype": "HTML",
   "options": "<p><strong>Condition Examples:</strong></p>\n<pre>pg.status==\"Open\"<br>account_request.country==\"Spain\"<br>pg.total &gt; 40000\n</pre>\n\n<p>App pg is available as <code>app</code>, Account Request as <code>account_request</code> and the current pg as just <code>pg</code>"
  },
  {
   "fieldname": "section_break_ehlw",
   "fieldtype": "Section Break"
  },
  {
   "fieldname": "column_break_jext",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "content_type",
   "fieldtype": "Select",
   "label": "Content Type",
   "options": "Rich Text\nMarkdown\nHTML"
  },
  {
   "depends_on": "eval: pg.content_type === 'Markdown'",
   "fieldname": "message_markdown",
   "fieldtype": "Markdown Editor",
   "in_list_view": 1,
   "label": "Message (Markdown)"
  },
  {
   "depends_on": "eval: pg.content_type === 'Rich Text'",
   "fieldname": "message_rich_text",
   "fieldtype": "Text Editor",
   "in_list_view": 1,
   "label": "Message (Rich Text)"
  },
  {
   "depends_on": "eval: pg.content_type === 'HTML'",
   "fieldname": "message_html",
   "fieldtype": "HTML Editor",
   "in_list_view": 1,
   "label": "Message (HTML)"
  },
  {
   "fieldname": "product_trial",
   "fieldtype": "Link",
   "label": "Product Trial",
   "options": "Product Trial"
  }
 ],
 "grid_page_length": 50,
 "icon": "icon-envelope",
 "links": [],
 "modified": "2025-05-22 15:14:07.377379",
 "modified_by": "Administrator",
 "module": "Press",
 "name": "Drip Email",
 "naming_rule": "Expression (old style)",
 "owner": "Administrator",
 "permissions": [
  {
   "create": 1,
   "delete": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "System Manager",
   "share": 1,
   "write": 1
  },
  {
   "create": 1,
   "delete": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "Consultant",
   "share": 1,
   "write": 1
  }
 ],
 "row_format": "Dynamic",
 "sort_field": "modified",
 "sort_order": "ASC",
 "states": [],
 "title_field": "subject"
}
