自定义字段各属性说明

自定义字段传参说明

  1. 文本类型自定义字段传参示例如下
custom_fields: { TextField_8: "123", TextField_9:"您好" ...} 
  1. 选择型自定义字段 单选框、下拉框的各个选项在系统中由数组存储,前端选了某个选项时,给后端传该选项的数组索引,注意虽然只有一个选项,也要以数组的形式传过去(单个元素的数组) javascript { custom_fields: { SelectField_8: ["0"], SelectField_5: ["1"] } } 复选框,级联字段的各个选项在系统中由数组存储,前端可以选好几个选项,以数组的形式传过去 javascript { custom_fields: { SelectField_8: ["0", "0", "1"], SelectField_5: ["1", "2", "0"] } }

示例

{
  "customer_custom_fields": [
    {
      "name": "SelectField_5",
      "title": "客户等级",
      "comment": "",
      "agent_permission": 2,
      "customer_permission": 0,
      "content_type": "droplist",
      "sort": 1,
      "requirement":false,
      "options": [
        "A级-近期购买意向强烈,需求和价格匹配理论考试等发达啦地方了咖啡大量的积分快点发来看",
        "B级-有一定意向,需求和价格还需要引导",
        "C级-产品对客户有帮助,先了解一下",
        "D级-基本可以放弃",
        "E级-完全不考虑",
        "F级-竞争对手"
      ]
    },
    {
      "name": "TextField_8",
      "title": "二级域名",
      "comment": "",
      "agent_permission": 2,
      "customer_permission": 0,
      "requirement":false,
      "content_type": "text",
      "sort": 2,
      "options": ""
    },
    {
      "name": "SelectField_6",
      "title": "关注点",
      "comment": "",
      "agent_permission": 2,
      "customer_permission": 0,
      "requirement":false,
      "content_type": "checkbox",
      "sort": 4,
      "options": [
        "电话",
        "IM",
        "工单",
        "微信",
        "机器人",
        "其他",
        "全渠道"
      ]
    },
    {
      "name": "TextField_10",
      "title": "注册/创建日期",
      "comment": "",
      "agent_permission": 2,
      "customer_permission": 0,
      "content_type": "date",
      "requirement":false,
      "sort": 6,
      "options": ""
    },
    {
      "name": "TextField_72",
      "title": "来源url",
      "comment": "",
      "agent_permission": 2,
      "customer_permission": 0,
      "requirement":false,
      "content_type": "area_text",
      "sort": 14
    },
    {
      "name": "TextField_77",
      "title": "超链接",
      "comment": "输入网址 ",
      "requirement":false,
      "agent_permission": 2,
      "customer_permission": 3,
      "content_type": "link",
      "sort": 17,
      "options": ""
    },
    {
      "name": "TextField_78",
      "title": "正整数",
      "comment": "",
      "agent_permission": 2,
      "customer_permission": 0,
      "content_type": "number",
      "requirement":false,
      "sort": 18
    },
    {
      "name": "TextField_79",
      "title": "数值",
      "comment": "",
      "agent_permission": 2,
      "customer_permission": 0,
      "content_type": "numeric",
      "requirement":false,
      "sort": 19,
      "options": ""
    }
  ]
}