{
 "actions": [],
 "allow_rename": 1,
 "autoname": "hash",
 "creation": "2024-06-24 09:20:47.114289",
 "doctype": "DocType",
 "engine": "InnoDB",
 "field_order": [
  "content_section",
  "enabled",
  "type",
  "title",
  "message",
  "help_url",
  "column_break_mycc",
  "is_scheduled",
  "scheduled_start_time",
  "scheduled_end_time",
  "action_section",
  "column_break_onof",
  "has_action",
  "action_label",
  "action",
  "column_break_adad",
  "is_dismissible",
  "scope_section",
  "column_break_fits",
  "is_global",
  "column_break_udzz",
  "type_of_scope",
  "team",
  "server",
  "site",
  "dismissals_section",
  "user_dismissals"
 ],
 "fields": [
  {
   "default": "0",
   "fieldname": "enabled",
   "fieldtype": "Check",
   "label": "Enabled"
  },
  {
   "fieldname": "message",
   "fieldtype": "Long Text",
   "label": "Message"
  },
  {
   "fieldname": "type",
   "fieldtype": "Select",
   "in_list_view": 1,
   "in_standard_filter": 1,
   "label": "Type",
   "options": "Info\nSuccess\nError\nWarning"
  },
  {
   "fieldname": "title",
   "fieldtype": "Data",
   "in_list_view": 1,
   "in_standard_filter": 1,
   "label": "Title"
  },
  {
   "fieldname": "content_section",
   "fieldtype": "Section Break",
   "label": "Content"
  },
  {
   "description": "Select the audience segment to enable the banner for",
   "fieldname": "scope_section",
   "fieldtype": "Section Break",
   "label": "Scope"
  },
  {
   "default": "0",
   "description": "Whether to display the banner for all sites across all regions",
   "fieldname": "is_global",
   "fieldtype": "Check",
   "label": "Is Global"
  },
  {
   "depends_on": "eval:!pg.is_global && pg.type_of_scope == \"Team\"",
   "description": "Recipients are users part of this Team",
   "fieldname": "team",
   "fieldtype": "Link",
   "label": "Team",
   "mandatory_depends_on": "eval:!pg.is_global && pg.type_of_scope == \"Team\"",
   "options": "Team"
  },
  {
   "depends_on": "eval:!pg.is_global && pg.type_of_scope == \"Server\"",
   "description": "Recipients are users with Sites on this Server",
   "fieldname": "server",
   "fieldtype": "Link",
   "label": "Server",
   "mandatory_depends_on": "eval:!pg.is_global && pg.type_of_scope == \"Server\"",
   "options": "Server"
  },
  {
   "depends_on": "eval:!pg.is_global & pg.type_of_scope == \"Site\"",
   "description": "Recipients are users with this Site",
   "fieldname": "site",
   "fieldtype": "Link",
   "label": "Site",
   "mandatory_depends_on": "eval:!pg.is_global && pg.type_of_scope == \"Site\"",
   "options": "Site"
  },
  {
   "fieldname": "column_break_fits",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "help_url",
   "fieldtype": "Data",
   "label": "Help URL"
  },
  {
   "depends_on": "eval:!!pg.has_action",
   "fieldname": "action",
   "fieldtype": "Data",
   "label": "Action Endpoint",
   "mandatory_depends_on": "eval:!!pg.has_action"
  },
  {
   "default": "0",
   "description": "Whether user can dismiss the banner",
   "fieldname": "is_dismissible",
   "fieldtype": "Check",
   "label": "Is Dismissible"
  },
  {
   "description": "Enables action and dismiss buttons on the banner",
   "fieldname": "action_section",
   "fieldtype": "Section Break",
   "label": "Actions"
  },
  {
   "default": "0",
   "description": "Whether the banner includes an action button",
   "fieldname": "has_action",
   "fieldtype": "Check",
   "label": "Has Action"
  },
  {
   "depends_on": "eval:!!pg.has_action",
   "fieldname": "action_label",
   "fieldtype": "Data",
   "label": "Action Label",
   "mandatory_depends_on": "eval:!!pg.has_action"
  },
  {
   "fieldname": "column_break_onof",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "column_break_mycc",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "column_break_adad",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "user_dismissals",
   "fieldtype": "Table",
   "label": "User Dismissals",
   "options": "Dashboard Banner Dismissal"
  },
  {
   "depends_on": "eval:!pg.is_global",
   "fieldname": "type_of_scope",
   "fieldtype": "Select",
   "in_list_view": 1,
   "in_standard_filter": 1,
   "label": "Type of scope",
   "mandatory_depends_on": "eval:!pg.is_global",
   "options": "Team\nServer\nSite"
  },
  {
   "fieldname": "column_break_udzz",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "dismissals_section",
   "fieldtype": "Section Break",
   "label": "Dismissals"
  },
  {
   "default": "0",
   "description": "This toggles the enabled flag at the start and end of schedule",
   "fieldname": "is_scheduled",
   "fieldtype": "Check",
   "label": "Is Scheduled",
   "search_index": 1
  },
  {
   "depends_on": "eval:!!pg.is_scheduled",
   "fieldname": "scheduled_start_time",
   "fieldtype": "Datetime",
   "label": "Scheduled Start Time",
   "mandatory_depends_on": "eval:!!pg.is_scheduled",
   "search_index": 1
  },
  {
   "depends_on": "eval:!!pg.is_scheduled",
   "fieldname": "scheduled_end_time",
   "fieldtype": "Datetime",
   "label": "Scheduled End Time",
   "mandatory_depends_on": "eval:!!pg.is_scheduled",
   "search_index": 1
  }
 ],
 "index_web_pages_for_search": 1,
 "links": [],
 "modified": "2025-10-30 20:48:50.537360",
 "modified_by": "Administrator",
 "module": "Press",
 "name": "Dashboard Banner",
 "naming_rule": "Random",
 "owner": "Administrator",
 "permissions": [
  {
   "create": 1,
   "delete": 1,
   "email": 1,
   "print": 1,
   "read": 1,
   "role": "System Manager",
   "share": 1,
   "write": 1
  }
 ],
 "row_format": "Dynamic",
 "show_title_field_in_link": 1,
 "sort_field": "creation",
 "sort_order": "DESC",
 "states": [],
 "title_field": "title"
}
