Authorization: Bearer ********************{
"status": "success",
"message": "Form fetched successfully",
"data": {
"id": 1,
"name": "Employee Onboarding Form - Updated",
"code": "EMP_ONBOARDING_001_V2",
"description": "Form untuk proses onboarding karyawan baru - versi terbaru",
"created_at": "2025-09-11T17:42:26.000000Z",
"updated_at": "2025-09-11T17:42:50.000000Z",
"type": 0,
"deleted_at": null,
"type_label": "Default Form",
"groups": [
{
"id": 3,
"name": "test",
"form_id": 1,
"order": 0,
"metadata": null,
"created_at": "2025-11-20T23:59:11.000000Z",
"updated_at": "2025-11-20T23:59:11.000000Z",
"fields": [
{
"id": 74,
"form_id": 1,
"label": "Reason for Leaving",
"type": "checkbox",
"options": [
"Better career opportunity (promotion & role expansion)",
"Salary/Compensation",
"Work-life balance",
"Relationship with supervisor/colleagues",
"Relocation / Family reason"
],
"is_required": true,
"order": 1,
"created_at": "2025-11-20T23:59:11.000000Z",
"updated_at": "2025-11-20T23:59:11.000000Z",
"deleted_at": null,
"description": null,
"metadata": null,
"field_group_id": 3
},
{
"id": 75,
"form_id": 1,
"label": "Compensation & Benefits",
"type": "range",
"options": {
"max": 5,
"min": 1
},
"is_required": true,
"order": 2,
"created_at": "2025-11-20T23:59:11.000000Z",
"updated_at": "2025-11-20T23:59:11.000000Z",
"deleted_at": null,
"description": null,
"metadata": {
"is_note": true
},
"field_group_id": 3
},
{
"id": 76,
"form_id": 1,
"label": "Work Environment",
"type": "range",
"options": {
"max": 5,
"min": 1
},
"is_required": true,
"order": 3,
"created_at": "2025-11-20T23:59:11.000000Z",
"updated_at": "2025-11-20T23:59:11.000000Z",
"deleted_at": null,
"description": null,
"metadata": {
"is_note": true
},
"field_group_id": 3
},
{
"id": 77,
"form_id": 1,
"label": "Relationship with Supervisor",
"type": "range",
"options": {
"max": 5,
"min": 1
},
"is_required": true,
"order": 4,
"created_at": "2025-11-20T23:59:11.000000Z",
"updated_at": "2025-11-20T23:59:11.000000Z",
"deleted_at": null,
"description": null,
"metadata": {
"is_note": true
},
"field_group_id": 3
},
{
"id": 78,
"form_id": 1,
"label": "Carrer Development",
"type": "range",
"options": {
"max": 5,
"min": 1
},
"is_required": true,
"order": 5,
"created_at": "2025-11-20T23:59:11.000000Z",
"updated_at": "2025-11-20T23:59:11.000000Z",
"deleted_at": null,
"description": null,
"metadata": {
"is_note": true
},
"field_group_id": 3
},
{
"id": 79,
"form_id": 1,
"label": "Company Strengs",
"type": "textarea",
"options": null,
"is_required": true,
"order": 6,
"created_at": "2025-11-20T23:59:11.000000Z",
"updated_at": "2025-11-20T23:59:11.000000Z",
"deleted_at": null,
"description": null,
"metadata": null,
"field_group_id": 3
},
{
"id": 80,
"form_id": 1,
"label": "Company Strengs",
"type": "textarea",
"options": null,
"is_required": true,
"order": 7,
"created_at": "2025-11-20T23:59:11.000000Z",
"updated_at": "2025-11-20T23:59:11.000000Z",
"deleted_at": null,
"description": null,
"metadata": null,
"field_group_id": 3
},
{
"id": 81,
"form_id": 1,
"label": "Suggestion for Improvement",
"type": "textarea",
"options": null,
"is_required": true,
"order": 8,
"created_at": "2025-11-20T23:59:11.000000Z",
"updated_at": "2025-11-20T23:59:11.000000Z",
"deleted_at": null,
"description": null,
"metadata": null,
"field_group_id": 3
},
{
"id": 82,
"form_id": 1,
"label": "Final Comments",
"type": "textarea",
"options": null,
"is_required": true,
"order": 9,
"created_at": "2025-11-20T23:59:11.000000Z",
"updated_at": "2025-11-20T23:59:11.000000Z",
"deleted_at": null,
"description": null,
"metadata": null,
"field_group_id": 3
},
{
"id": 83,
"form_id": 1,
"label": "Contoh Text Biasa",
"type": "text",
"options": null,
"is_required": true,
"order": 10,
"created_at": "2025-11-20T23:59:11.000000Z",
"updated_at": "2025-11-20T23:59:11.000000Z",
"deleted_at": null,
"description": null,
"metadata": null,
"field_group_id": 3
},
{
"id": 84,
"form_id": 1,
"label": "Contoh Select Option (cuman single aja gk multiple)",
"type": "select",
"options": [
"A. Benar",
"B. Salah",
"C. Salah Tapi Benar"
],
"is_required": true,
"order": 11,
"created_at": "2025-11-20T23:59:11.000000Z",
"updated_at": "2025-11-20T23:59:11.000000Z",
"deleted_at": null,
"description": null,
"metadata": null,
"field_group_id": 3
},
{
"id": 85,
"form_id": 1,
"label": "Contoh Radio Button (cuman single aja gk multiple)",
"type": "radio",
"options": [
"Visa",
"Master Card"
],
"is_required": true,
"order": 12,
"created_at": "2025-11-20T23:59:11.000000Z",
"updated_at": "2025-11-20T23:59:11.000000Z",
"deleted_at": null,
"description": null,
"metadata": null,
"field_group_id": 3
}
]
}
]
}
}