json2
json2
"metadata": {
"formId": "statutory-certificates-v1",
"title": "Statutory and Other Certificates",
"description": "List of statutory and other certificates for the vessel.",
"version": "1.0",
"timestamp": "2024-01-01T00:00:00Z",
"documentType": "Certificate Log",
"formReference": "D 01"
},
"sections": [
{
"sectionId": "header",
"title": "Vessel and Report Details",
"fields": [
{
"key": "vesselName",
"label": "M.V.",
"type": "text",
"dataType": "string",
"required": true
},
{
"key": "reportMonth",
"label": "Month",
"type": "text",
"dataType": "string",
"required": true,
"placeholder": "e.g., January"
},
{
"key": "responsibility",
"label": "Responsibility",
"type": "text",
"dataType": "string",
"defaultValue": "MASTER",
"disabled": true
}
]
},
{
"sectionId": "certificates",
"title": "Certificate Details",
"description": "List of required certificates and their status.",
"table": {
"key": "certificateItems",
"columns": [
{
"key": "serialNo",
"label": "S.No",
"type": "text",
"dataType": "string",
"widthFactor": 0.1
},
{
"key": "certificateName",
"label": "Certificates",
"type": "textarea",
"dataType": "string",
"required": true,
"widthFactor": 0.3
},
{
"key": "dateOfIssue",
"label": "Date of Issue",
"type": "date",
"dataType": "string",
"widthFactor": 0.15
},
{
"key": "dateOfExpiry",
"label": "Date of Expiry",
"type": "date_or_text",
"dataType": "string",
"placeholder": "YYYY-MM-DD or LIFETIME",
"widthFactor": 0.15
},
{
"key": "remarks",
"label": "Remarks",
"type": "textarea",
"dataType": "string",
"widthFactor": 0.3
}
],
"rows": [], // Rows should be pre-populated based on the form structure if
needed
"allowRowAddition": true,
"allowRowRemoval": true
}
},
{
"sectionId": "typeApprovals",
"title": "Type Approvals",
"description": "List of type-approved equipment.",
"table": {
"key": "typeApprovalItems",
"columns": [
{ "key": "serialNo", "label": "S.No", "type": "number", "dataType":
"number", "widthFactor": 0.1 },
{ "key": "equipmentName", "label": "Type Approvals", "type":
"text", "dataType": "string", "required": true, "widthFactor": 0.4 },
{ "key": "approved", "label": "Approved (YES/NO)", "type":
"dropdown", "dataType": "string", "options": [{"label": "YES", "value": "YES"},
{"label": "NO", "value": "NO"}], "widthFactor": 0.15 },
{ "key": "makeModel", "label": "Make / Model", "type": "text",
"dataType": "string", "widthFactor": 0.35 }
],
"rows": [], // Pre-populate or allow dynamic addition
"allowRowAddition": true,
"allowRowRemoval": true
}
},
{
"sectionId": "signatures",
"title": "Signature",
"fields": [
{
"key": "masterSignature",
"label": "Master's Signature",
"type": "signature",
"dataType": "string",
"required": true
}
]
}
]
}