Hello,
I created a form in Zohocliq.
Here is the code:{
"type": "form",
"title": "FHG Orders",
"name": "FHG-Orders",
"hint": "This form takes input from telesales for each order to be sent to DAs",
"button_label": "Submit",
"inputs": [
{
"name": "date",
"label": "Order Date:",
"placeholder": "Select order date!",
"mandatory": true,
"type": "datetime"
},
{
"name": "text",
"label": "Customer's Fullname",
"placeholder": "Enter Customer's Fullname",
"min_length": "0",
"max_length": "25",
"mandatory": true,
"type": "text"
},
{
"name": "phone-1",
"label": " CUS Phone Number 1",
"placeholder": "Enter customer's mobile number here!",
"min_length": "0",
"max_length": "25",
"mandatory": true,
"type": "text",
"format": "tel"
},
{
"name": "phone-2",
"label": "CUS Phone Number 2",
"placeholder": "Enter customer's 2nd mobile number here!",
"min_length": "0",
"max_length": "25",
"mandatory": false,
"type": "text",
"format": "tel"
},
{
"name": "textarea",
"label": "CUS Full Address:",
"placeholder": "Write a detailed address for the customer... ",
"min_length": "0",
"max_length": "25",
"mandatory": true,
"type": "textarea"
},
{
"name": "radio",
"label": "What Did the Customer Order?",
"mandatory": true,
"type": "radio",
"options": [
{
"value": "1 shampoo 1 pomade 1 conditioner - ₦27,450",
"label": "1 shampoo 1 pomade 1 conditioner - ₦27,450"
},
{
"value": "3 shampoo 3 pomade - ₦42,740",
"label": "3 shampoo 3 pomade - ₦42,740"
},
{
"value": "3shampoo3pomade3conditioner-54750",
"label": "3 shampoo 3 pomade 3 conditioner - ₦54,750"
},
{
"value": "3 Pomade - ₦27,450",
"label": "3 Pomade - ₦27,450"
}
]
},
{
"name": "radio-1",
"label": "Who Paid for This Order?",
"mandatory": true,
"type": "radio",
"options": [
{
"value": "CUS",
"label": "Customer (CUS)"
},
{
"value": "DA",
"label": "Delivery Agent (DA) Is to Remit"
}
]
},
{
"name": "file",
"label": "Proof of Payment",
"placeholder": "Upload Proof of Payment",
"hint": "Upload only if CUS paid BEFORE delivery",
"mandatory": false,
"type": "file"
},
{
"name": "radio-2",
"label": "Is this Customer To Be Given Gift?",
"mandatory": true,
"type": "radio",
"options": [
{
"value": "Yes",
"label": "Yes"
},
{
"value": "No",
"label": "No"
}
]
},
{
"name": "radio-3",
"label": "What Gift Is to Be Given?",
"hint": "Only customers who paid online DIRECTLY to the company BEFORE delivery are to be given gift!!!",
"mandatory": false,
"type": "radio",
"options": [
{
"value": "None",
"label": "None"
},
{
"value": "Hair Bonnet & Sample Shampoo",
"label": "Hair Bonnet & Sample Shampoo"
}
]
},
{
"name": "date-1",
"label": "Expected Date for Delivery",
"placeholder": "Select Expected Date for Delivery",
"mandatory": true,
"type": "datetime"
}
],
"action": {
"type": "invoke.function",
"name": "function"
}
}
I pasted the code in command but I keep getting this error:
Error
(Line No - 1)Syntax error. Expecting '}' or statement. Found '{'.
I am NOT sure what else to do. Kindly help.
Screenshot attached