curl --location '/api/V1/form/get' \
--form 'lang="tw"' \
--form 'type="Form-Example"'{
"result": "success",
"status": "200",
"data": [
{
"title": "單行輸入欄",
"type": "text",
"columns": "text",
"default": "單行輸入欄預設值",
"is_required": 1,
"max": "20"
},
{
"title": "範圍輸入框",
"type": "textarea",
"columns": "textarea",
"default": "範圍輸入框預設值",
"is_required": 1,
"max": "999999"
},
{
"title": "Email",
"type": "email",
"columns": "email",
"default": "ktrees.designer@gmail.com",
"is_required": 1,
"max": "100"
},
{
"title": "日期欄位",
"type": "date",
"columns": "date",
"default": "2025-01-01",
"is_required": 1,
"max": null
},
{
"title": "下拉選單",
"type": "select",
"columns": "select",
"default": "1",
"is_required": 1,
"max": null,
"option": [
{
"title": "下拉選單選項A",
"value": "A",
"other_status": false
},
{
"title": "下拉選單選項B",
"value": "B",
"other_status": false
},
{
"title": "下拉選單選項1",
"value": "1",
"other_status": false
}
]
},
{
"title": "單選",
"type": "radio",
"columns": "radio",
"default": "2",
"is_required": 1,
"max": null,
"option": [
{
"title": "單選A",
"value": "A",
"other_status": false
},
{
"title": "單選B",
"value": "B",
"other_status": false
},
{
"title": "單選1 - 額外輸入欄位 - 必填",
"value": "1",
"other_status": true,
"text_is_required": null,
"text_max": "50",
"text_type": "text"
},
{
"title": "單選二 - 額外輸入框 - 非必填",
"value": "2",
"other_status": true,
"text_is_required": "close",
"text_max": "99999",
"text_type": "textarea"
}
]
},
{
"title": "多選",
"type": "checkbox",
"columns": "checkbox",
"default": "B",
"is_required": 1,
"max": null,
"option": [
{
"title": "多選A",
"value": "A",
"other_status": false
},
{
"title": "多選B",
"value": "B",
"other_status": false
},
{
"title": "多選C",
"value": "C",
"other_status": false
}
]
},
{
"title": "數字輸入欄",
"type": "number",
"columns": "number",
"default": "10",
"is_required": 0,
"max": "50"
}
]
}