CubeDrive   ->   API

Load form structure


With this API 【loadFormById OR loadFormByDocId】, users can access the form structure

Name: {{baseuri}}/formMgr/loadFormById

Parameter:

http method: GET/POST

Steps

Here comes the steps


Name: {{baseuri}}/formMgr/loadFormByDocId

Parameter:

http method: GET/POST

Step

Here lists the steps

Result


{
  "success": true,
  "form": {
    "id": "6671575366949146624",
    "formTitle": "data",
    "formUrl": "https://app.redbeandata.cn/cubedrive/app/form/d-ZR3J8SF69oags9qpqdNjRUxZbVrNTL",
    "icon": "fa-list-alt",
    "description": "",
    "type": "public",
    "tag": null,
    "content": null,
    "defaultPermission": 2,
    "repeatEnter": false,
    "expireDatetime": null,
    "permission": null,
    "settings": { ... },
    "pdfTemplate": null,
    "sharePermission": null,
    "formDocumentId": "aCGVxh4dgtI",
    "innerLink": null,
    "fields": [
      {
        "id": "5411",
        "title": "Start date",
        "col": 8,
        "uid": "u2942",
        "hidden": false,
        "settings": {
          "dt": 2,
          "showRequired": false,
          "disabled": true,
          "hint": "",
          "title": "start date",
          "initialVal": "",
          "changeAllow": false,
          "description": "",
          "hidden": false,
          "openTplType": "default",
          "dfm": "M-d(l)",
          "hasMetaData": true,
          "list": [],
          "listCss": [],
          "addSortWeight": true,
          "nullValNotInSort": true
        },
        "permission": null
      },
      {
        "id": "5412",
        "title": "data",
        "col": 7,
        "uid": "u524",
        "hidden": false,
        "settings": {
          "dt": 1,
          "showRequired": false,
          "disabled": false,
          "hint": "",
          "title": "type",
          "initialVal": "",
          "changeAllow": false,
          "description": "",
          "hidden": false,
          "openTplType": "default",
          "dv": ""
        },
        "permission": null
      },
      {
        "id": "5413",
        "title": "name",
        "col": 6,
        "uid": "u8882",
        "hidden": false,
        "settings": {
          "dt": 1,
          "showRequired": false,
          "disabled": false,
          "hint": "",
          "title": "name",
          "initialVal": "",
          "changeAllow": false,
          "description": "",
          "hidden": false,
          "openTplType": "default",
          "dv": ""
        },
        "permission": null
      },
      {
        "id": "5414",
        "title": "project",
        "col": 5,
        "uid": "u1040",
        "hidden": false,
        "settings": {
          "dt": 1,
          "showRequired": false,
          "disabled": false,
          "hint": "",
          "title": "project",
          "initialVal": "",
          "changeAllow": false,
          "description": "",
          "hidden": false,
          "openTplType": "default",
          "dv": ""
        },
        "permission": null
      },
      {
        "id": "5415",
        "title": "date",
        "col": 4,
        "uid": "u811",
        "hidden": false,
        "settings": {
          "dt": 2,
          "showRequired": false,
          "disabled": false,
          "hint": "",
          "title": "date",
          "initialVal": "",
          "changeAllow": false,
          "description": "",
          "hidden": false,
          "openTplType": "default",
          "dfm": "Y-m-d",
          "list": [],
          "listCss": []
        },
        "permission": null
      },
      {
        "id": "5416",
        "title": "content",
        "col": 3,
        "uid": "u295",
        "hidden": false,
        "settings": {
          "dt": 1,
          "showRequired": false,
          "disabled": false,
          "hint": "",
          "title": "content",
          "initialVal": "",
          "changeAllow": false,
          "description": "",
          "hidden": false,
          "openTplType": "default",
          "dv": ""
        },
        "permission": null
      },
      {
        "id": "5417",
        "title": "sell",
        "col": 2,
        "uid": "u7184",
        "hidden": false,
        "settings": {
          "dt": 1,
          "showRequired": false,
          "disabled": false,
          "hint": "",
          "title": "sell",
          "initialVal": "",
          "changeAllow": false,
          "description": "",
          "hidden": false,
          "openTplType": "default",
          "dv": ""
        },
        "permission": null
      },
      {
        "id": "5418",
        "title": "Group",
        "col": 1,
        "uid": "u2490",
        "hidden": false,
        "settings": {
          "dt": 1,
          "showRequired": false,
          "disabled": false,
          "hint": "",
          "title": "Group",
          "initialVal": "",
          "changeAllow": false,
          "description": "",
          "hidden": false,
          "openTplType": "default",
          "dv": ""
        },
        "permission": null
      }
    ],
    "author": false
  }
}