CODE
{
"id": "65b248c710e57100322c5f88",
"state": "unpublished",
"formType": "Survey",
"formTitle": "Survey Form Testing",
"formDescription": "",
"enableSections": true,
"enableWeightage": false,
"section":
[
{
"sectionName": "Section Name",
"_id": "670f7d5b3c3cb500262901e9",
"sectionWeightage": null, or 0 because in case of survey weightage is disabled
"attributes":
[
// Boolean Type Question (YES/NO)
{
"_id": "65dc26ba07c232003325b8bf", // String (ObjectId)
"attributeType": "OPTIONS", // String (Field type)
"helpText": "Enter Customer Type Here...", // String (Placeholder of field)
"isRequired": true, // Boolean (Check if field is required or not)
"key": "customer_type", // String (Unique key for the attribute)
"label": "Customer Type", // String (Label for the attribute)
"valueType": "boolean", // String (Boolean, YES/NO Question valueType)
"attributeAttachment": "https://file-server.expertflow.com/xyz", // String (Optional Media File to be attached)
"attributeWeightage": null, // Null or Number (Overall attributeWeightage will be null or 0 in case of boolean)
"attributeOptions": {
"enableCategory": false, // Boolean
"enableStyle": true, // Boolean (Assuming style can be enabled for boolean)
"reverseOrder": false, // Boolean (If 'true' attributeData will be in reversed order)
"isMultipleChoice": false, // Boolean (will be false in case of boolean)
"attributeData": [
{
"label": "Label Name", // String
"values": [
{
"label": "Yes", // String
"value": true, // Boolean
"optionStyle": {
"name": "Filled Smile", // String
"media": "https://cx-frontend.expertflow.com/unified-admin/assets/images/form-assets/emoticon-filled-1.svg", // String
"type": "filled", // String
"color": null // String
},
"optionWeightage": null // Null or Number (weightage will be null or 0 in case of boolean)
},
{
"label": "No", // String
"value": false, // Boolean
"optionStyle": {
"name": "Filled Smile", // String
"media": "https://cx-frontend.expertflow.com/unified-admin/assets/images/form-assets/emoticon-filled-1.svg", // String
"type": "filled", // String
"color": null // String
},
"optionWeightage": null // Null or Number (weightage will be null or 0 in case of boolean)
}
]
}
]
}
},
// 5 Star Rating Type Question (5-star-rating, Emoji-Filled)
{
"_id": "65dc26ba07c232003325b8bf", // String (ObjectId)
"attributeType": "OPTIONS", // String (Field type)
"helpText": "Enter Customer Type Here...", // String (Placeholder of field)
"isRequired": true, // Boolean (Check if field is required or not)
"key": "customer_type", // String (Unique key for the attribute)
"label": "Customer Type", // String (Label for the attribute)
"valueType": "5-star-rating", // String (5-star-rating),
"attributeWeightage": 10, // Number (Overall attributeWeightage for the question)
"attributeAttachment": "https://file-server.expertflow.com/xyz", // String or Null (Optional Media File to be attached otherwise "null")
"attributeOptions": {
"enableCategory": false, // Boolean (In case of Dropdown type question, category can be enabled)
"enableStyle": true, // Boolean (Emojis can not be enabled for dropdown)
"reverseOrder": false, // Boolean (Reverse Order can be 'true' in case of rating type question)
"isMultipleChoice": false, // Boolean (will be false in case of dropdown)
"attributeData": [
{
"label": "Label Name", // String
"values": [
{
"label": "Very Dissatisfied", // String
"value": 1, // Number
"optionStyle": { // Object
"name": "Filled Smile", // String
"media": "https://cx-frontend.expertflow.com/unified-admin/assets/images/form-assets/emoticon-filled-1.svg", // String
"type": "filled", // String
"color": "#ffffff" // String
},
"optionWeightage": null // Null (weightage can be null)
},
{
"label": "Dissatisfied", // String
"value": 2, // Number
"optionStyle": { // Object
"name": "Filled Smile", // String
"media": "https://cx-frontend.expertflow.com/unified-admin/assets/images/form-assets/emoticon-filled-1.svg", // String
"type": "filled", // String
"color": "#ffffff" // String
},
"optionWeightage": null // Null (weightage can be null)
},
{
"label": "Neutral", // String
"value": 3, // Number
"optionStyle": { // Object
"name": "Filled Smile", // String
"media": "https://cx-frontend.expertflow.com/unified-admin/assets/images/form-assets/emoticon-filled-1.svg", // String
"type": "filled", // String
"color": "#ffffff" // String
},
"optionWeightage": null // Null (weightage can be null)
},
{
"label": "Satisfied", // String
"value": 4, // Number
"optionStyle": { // Object
"name": "Filled Smile", // String
"media": "https://cx-frontend.expertflow.com/unified-admin/assets/images/form-assets/emoticon-filled-1.svg", // String
"type": "filled", // String
"color": "#ffffff" // String
},
"optionWeightage": null // Null (weightage can be null)
},
{
"label": "Very Satisfied", // String
"value": 5, // Number
"optionStyle": { // Object
"name": "Filled Smile", // String
"media": "https://cx-frontend.expertflow.com/unified-admin/assets/images/form-assets/emoticon-filled-1.svg", // String
"type": "filled", // String
"color": "#ffffff" // String
},
"optionWeightage": null // Null (weightage can be null)
}
]
}
]
}
},
// NPS Net Promoter Score Question Type
{
"_id": "65dc26ba07c232003325b8bf", // String (ObjectId)
"attributeType": "OPTIONS", // String (Field type)
"helpText": "Enter Customer Type Here...", // String (Placeholder of field)
"isRequired": true, // Boolean (Check if field is required or not)
"key": "customer_type", // String (Unique key for the attribute)
"label": "Customer Type", // String (Label for the attribute)
"valueType": "nps", // String (Boolean, checkbox, mcq, dropdown, rating, nps)
"attributeWeightage": 10, // Number (Overall attributeWeightage for the question)
"attributeAttachment": "https://file-server.expertflow.com/xyz", // String or Null (Optional Media File to be attached otherwise "null")
"attributeOptions": {
"enableCategory": false, // Boolean
"enableStyle": false, //Boolean
"reverseOrder": false, //Boolean
"isMultipleChoice": false, // Boolean (Only true in case of checkboxes)
"attributeData": [
{
"label": "", // String
"values": [
{
"label": "Very Dissatisfied", // String
"value": 0, // Number
"optionStyle": { // Object
"name": "Filled Smile", // String
"media": null, // String
"type": "nps", // String
"color": "#ffffff" // String
},
"optionWeightage": null // Null or Number
},
{
"label": "", // String
"value": 1, // Number
"optionStyle": { // Object
"name": "Filled Smile", // String
"media": null, // String
"type": "nps", // String
"color": "#ffffff" // String
},
"optionWeightage": null // Null or Number
},
{
"label": "", // String
"value": 2, // Number
"optionStyle": { // Object
"name": "Filled Smile", // String
"media": null, // String
"type": "nps", // String
"color": "#ffffff" // String
},
"optionWeightage": null // Null or Number
},
{
"label": "", // String
"value": 3, // Number
"optionStyle": { // Object
"name": "Filled Smile", // String
"media": null, // String
"type": "nps", // String
"color": "#ffffff" // String
},
"optionWeightage": null // Null or Number
},
{
"label": "", // String
"value": 4, // Number
"optionStyle": { // Object
"name": "Filled Smile", // String
"media": null, // String
"type": "nps", // String
"color": "#ffffff" // String
},
"optionWeightage": null // Null or Number
},
{
"label": "", // String
"value": 5, // Number
"optionStyle": { // Object
"name": "Filled Smile", // String
"media": null, // String
"type": "nps", // String
"color": "#ffffff" // String
},
"optionWeightage": null // Null or Number
},
{
"label": "", // String
"value": 6, // Number
"optionStyle": { // Object
"name": "Filled Smile", // String
"media": null, // String
"type": "nps", // String
"color": "#ffffff" // String
},
"optionWeightage": null // Null or Number
},
{
"label": "", // String
"value": 7, // Number
"optionStyle": { // Object
"name": "Filled Smile", // String
"media": null, // String
"type": "nps", // String
"color": "#ffffff" // String
},
"optionWeightage": null // Null or Number
},
{
"label": "", // String
"value": 8, // Number
"optionStyle": { // Object
"name": "Filled Smile", // String
"media": null, // String
"type": "nps", // String
"color": "#ffffff" // String
},
"optionWeightage": null // Null or Number
},
{
"label": "", // String
"value": 9, // Number
"optionStyle": { // Object
"name": "Filled Smile", // String
"media": null, // String
"type": "nps", // String
"color": "#ffffff" // String
},
"optionWeightage": null // Null or Number
},
{
"label": "", // String
"value": 10, // Number
"optionStyle": { // Object
"name": "Filled Smile", // String
"media": null, // String
"type": "nps", // String
"color": "#ffffff" // String
},
"optionWeightage": null // Null or Number
}
]
}
]
}
},
// MCQ Multiple Choice Single Select
{
"_id": "65dc26ba07c232003325b8bf", // String (ObjectId)
"attributeType": "OPTIONS", // String (Field type)
"helpText": "Enter Customer Type Here...", // String (Placeholder of field)
"isRequired": true, // Boolean (Check if field is required or not)
"key": "customer_type", // String (Unique key for the attribute)
"label": "Customer Type", // String (Label for the attribute)
"valueType": "mcq", // String (Multiple Choice, Single Select)
"attributeAttachment": "https://file-server.expertflow.com/xyz", // String or Null (Optional Media File to be attached otherwise "null")
"attributeWeightage": 10, // Number (Overall attributeWeightage for the question)
"attributeOptions": {
"enableCategory": false, // Boolean (In case of MCQ type question, category can be enabled)
"enableStyle": false, // Boolean (Emojis cannot be enabled for mcq)
"reverseOrder": false, // Boolean (Reverse Order cannot be 'true' in case of mcq type question)
"isMultipleChoice": false, // Boolean (will be false in case of mcq)
"attributeData": [
{
"label": "Label Name", // String
"values": [
{
"label": "One", // String
"value": null, // Null (value is not specified for mcq options)
"optionStyle": null, // It may be Null or Object with keys value null in it
"optionWeightage": 10 // Number (weightage can be enabled in case of mcq)
},
{
"label": "Two", // String
"value": null, // Null (value is not specified for mcq options)
"optionStyle": null, // It may be Null or Object with keys value null in it
"optionWeightage": 10 // Number (weightage can be enabled in case of mcq)
}
// More objects can be added here
]
}
// More objects will only be added in case of 'enableCategory' is 'true'
]
}
},
// Dropdown Type Question
{
"_id": "65dc26ba07c232003325b8bf", // String (ObjectId)
"attributeType": "OPTIONS", // String (Field type)
"helpText": "Enter Customer Type Here...", // String (Placeholder of field)
"isRequired": true, // Boolean (Check if field is required or not)
"key": "customer_type", // String (Unique key for the attribute)
"label": "Customer Type", // String (Label for the attribute)
"valueType": "dropdown", // String (dropdown)
"attributeAttachment": "https://file-server.expertflow.com/xyz", // String or Null (Optional Media File to be attached otherwise "null")
"attributeWeightage": 10, // Number (Overall attributeWeightage for the question)
"attributeOptions": {
"enableCategory": false, // Boolean (In case of Dropdown type question, category can be enabled)
"enableStyle": false, // Boolean (Emojis cannot be enabled for dropdown)
"reverseOrder": false, // Boolean (Reverse Order cannot be 'true' in case of dropdown type question)
"isMultipleChoice": false, // Boolean (will be false in case of dropdown)
"attributeData": [
{
"label": "Label Name", // String
"values": [
{
"label": "One", // String
"value": null, // Null (value is not specified for dropdown options)
"optionStyle": null, // It may be Null or Object with keys value null in it
"optionWeightage": 10 // Number (weightage can be enabled in case of mcq)
},
{
"label": "Two", // String
"value": null, // Null (value is not specified for dropdown options)
"optionStyle": null, // It may be Null or Object with keys value null in it
"optionWeightage": 10 // Number (weightage can be enabled in case of mcq)
}
// More objects can be added here
]
}
]
}
},
{
// All possible attributes of the type INPUT
},
{
// TEXTAREA
},
]
}
]
}