REST API Documentation - Form Module
EP : Extended Permissions
+ : Consider the permission and all permissions above it.
Permission sequence : Account Admin > Project Manager > Project Member > Contact
JsonText of FormHistory object used for publish & preview form. Below is one sample JSON.
{
"id": 2659,
"formType": 2,
"introText": null,
"confirmationMessage": null,
"sections": [
{
"sectionId": 152617,
"state": null,
"name": "Standard",
"helpText": "This is standard project section",
"templateFlag": 2,
"hiddenFlag": 2,
"displayOrder": 1,
"customSectionId": "152617",
"fields": [
{
"fieldTypeId": 1,
"state": null,
"displayName": "Project Name",
"fieldLabel": "Project Name",
"maxLength": 128,
"fieldSize": 540,
"defaultValue": null,
"fieldOptions": null,
"fieldJavascripts": null,
"displayOrder": 1,
"requiredFlag": 1,
"hiddenFlag": 2,
"helpText": "This is standard project name",
"noOfDecimal": 0,
"standardFieldId": 52,
"fieldId": 208681,
"xtype": "textfield",
"customFieldId": "208681",
"name": "name"
},
{
"fieldTypeId": 4,
"state": null,
"displayName": "Planned Start Date",
"fieldLabel": "Planned Start Date",
"maxLength": 1,
"fieldSize": 490,
"defaultValue": null,
"fieldOptions": null,
"fieldJavascripts": null,
"displayOrder": 2,
"requiredFlag": 1,
"hiddenFlag": 2,
"helpText": "This is standard project start date",
"noOfDecimal": 0,
"standardFieldId": 54,
"fieldId": 208683,
"xtype": "datefield",
"customFieldId": "208683",
"name": "startDate"
},
{
"fieldTypeId": 4,
"state": null,
"displayName": "Due Date",
"fieldLabel": "Due Date",
"maxLength": 1,
"fieldSize": 490,
"defaultValue": null,
"fieldOptions": null,
"fieldJavascripts": null,
"displayOrder": 3,
"requiredFlag": 1,
"hiddenFlag": 2,
"helpText": "This is standard project due date",
"noOfDecimal": 0,
"standardFieldId": 55,
"fieldId": 208684,
"xtype": "datefield",
"customFieldId": "208684",
"name": "dueDate"
},
{
"fieldTypeId": 7,
"state": null,
"displayName": "Project Status",
"fieldLabel": "Project Status",
"maxLength": 1,
"fieldSize": 490,
"defaultValue": null,
"fieldOptions": [
{
"displayValue": "Project Started",
"defaultValue": false,
"sortOrder": 1,
"customFieldOptionId": "195688",
"colorCode": "#B38066",
"fieldOptionId": 195688
},
{
"displayValue": "In Progress",
"defaultValue": false,
"sortOrder": 2,
"customFieldOptionId": "195689",
"colorCode": "#7FB37D",
"fieldOptionId": 195689
},
{
"displayValue": "On Hold",
"defaultValue": false,
"sortOrder": 3,
"customFieldOptionId": "195690",
"colorCode": "#7181CF",
"fieldOptionId": 195690
},
{
"displayValue": "Complete",
"defaultValue": false,
"sortOrder": 4,
"customFieldOptionId": "195691",
"colorCode": "#B36BAE",
"fieldOptionId": 195691
},
{
"displayValue": "Cancelled",
"defaultValue": false,
"sortOrder": 5,
"customFieldOptionId": "195692",
"colorCode": "#B4B1D4",
"fieldOptionId": 195692
},
{
"displayValue": "Sample Status -1001",
"defaultValue": false,
"sortOrder": 6,
"customFieldOptionId": "199716",
"colorCode": "#D6B8BB",
"fieldOptionId": 199716
},
{
"displayValue": "Custom blk",
"defaultValue": false,
"sortOrder": 7,
"customFieldOptionId": "199724",
"colorCode": "#000000",
"fieldOptionId": 199724
},
{
"displayValue": "Project_Form_Status",
"defaultValue": false,
"sortOrder": 8,
"customFieldOptionId": "199718",
"colorCode": "#29b394",
"fieldOptionId": 199718
},
{
"displayValue": "Blue status",
"defaultValue": false,
"sortOrder": 9,
"customFieldOptionId": "199722",
"colorCode": "#2B24FF",
"fieldOptionId": 199722
},
{
"displayValue": "Red status",
"defaultValue": false,
"sortOrder": 10,
"customFieldOptionId": "199720",
"colorCode": "#FF0000",
"fieldOptionId": 199720
},
{
"displayValue": "Yellow status",
"defaultValue": false,
"sortOrder": 11,
"customFieldOptionId": "199719",
"colorCode": "#E4FC0A",
"fieldOptionId": 199719
},
{
"displayValue": "Green status",
"defaultValue": false,
"sortOrder": 12,
"customFieldOptionId": "199721",
"colorCode": "#008000",
"fieldOptionId": 199721
},
{
"displayValue": "testDefault",
"defaultValue": false,
"sortOrder": 13,
"customFieldOptionId": "199993",
"colorCode": "#29b394",
"fieldOptionId": 199993
}
],
"displayOrder": 4,
"requiredFlag": 2,
"hiddenFlag": 2,
"helpText": null,
"noOfDecimal": 0,
"standardFieldId": 63,
"fieldId": 208690,
"xtype": "combo",
"customFieldId": "208690",
"name": ""
},
{
"fieldTypeId": 7,
"state": null,
"displayName": "Billing Type",
"fieldLabel": "Billing Type",
"maxLength": 10,
"fieldSize": 490,
"defaultValue": null,
"fieldOptions": null,
"displayOrder": 5,
"requiredFlag": 1,
"hiddenFlag": 2,
"helpText": null,
"noOfDecimal": 0,
"standardFieldId": 103,
"fieldId": 208664,
"xtype": "combo",
"customFieldId": "208664",
"name": ""
},
{
"fieldTypeId": 7,
"state": null,
"displayName": "Billing Status",
"fieldLabel": "Billing Status",
"maxLength": 10,
"fieldSize": 490,
"defaultValue": null,
"fieldOptions": null,
"displayOrder": 6,
"requiredFlag": 1,
"hiddenFlag": 2,
"helpText": null,
"noOfDecimal": 0,
"standardFieldId": 104,
"fieldId": 208665,
"xtype": "combo",
"customFieldId": "208665",
"name": ""
}
]
}
],
"ruleJsonText": [],
"deletedRuleIds": "",
"formHistoryId": 72343
}