{
  "name": "Travel Authorization Request",
  "description": "Capture details for business travel planning and approvals.",
  "category": "Operations",
  "tags": [
    "travel",
    "operations",
    "approval",
    "expense"
  ],
  "version": 1,
  "form_data": {
    "name": "Travel Authorization Request",
    "heading": "Travel Authorization Request",
    "description": "Provide trip details so finance and operations can review and approve your travel.",
    "formpages": [
      1
    ],
    "pages": [
      {
        "id": 1,
        "name": "Travel Authorization Request",
        "heading": "Travel Authorization Request",
        "description": "Provide trip details so finance and operations can review and approve your travel.",
        "folder": "0",
        "pagerows": [
          1,
          2,
          3,
          4,
          5,
          6,
          7
        ],
        "rows": [
          {
            "id": 1,
            "name": "Traveler Information",
            "heading": "Traveler Information",
            "description": "Who is traveling and how can we reach them?",
            "folder": "0",
            "rowcolumns": [
              1,
              2
            ],
            "columns": [
              {
                "id": 1,
                "name": "Column 1",
                "fields": [
                  1
                ],
                "width": 6,
                "field_data": [
                  {
                    "field_type": "inputtext",
                    "name": "Traveler Name",
                    "heading": "Traveler Name",
                    "description": "Full name as it appears on government ID.",
                    "is_required": 1,
                    "placeholder": "Jordan Smith",
                    "id": 1
                  }
                ]
              },
              {
                "id": 2,
                "name": "Column 2",
                "fields": [
                  2
                ],
                "width": 6,
                "field_data": [
                  {
                    "field_type": "inputemail",
                    "name": "Traveler Email",
                    "heading": "Traveler Email",
                    "description": "We will send updates and approvals here.",
                    "is_required": 1,
                    "placeholder": "jordan.smith@example.com",
                    "id": 2
                  }
                ]
              }
            ]
          },
          {
            "id": 2,
            "name": "Trip Details",
            "heading": "Trip Details",
            "description": "Outline your destination and travel dates.",
            "folder": "0",
            "rowcolumns": [
              3,
              4,
              5
            ],
            "columns": [
              {
                "id": 3,
                "name": "Column 3",
                "fields": [
                  3
                ],
                "width": 4,
                "field_data": [
                  {
                    "field_type": "inputtext",
                    "name": "Destination City",
                    "heading": "Destination City",
                    "description": "City and country you are visiting.",
                    "is_required": 1,
                    "placeholder": "Berlin, Germany",
                    "id": 3
                  }
                ]
              },
              {
                "id": 4,
                "name": "Column 4",
                "fields": [
                  4
                ],
                "width": 4,
                "field_data": [
                  {
                    "field_type": "inputdate",
                    "name": "Departure Date",
                    "heading": "Departure Date",
                    "description": "First day of travel.",
                    "is_required": 1,
                    "id": 4
                  }
                ]
              },
              {
                "id": 5,
                "name": "Column 5",
                "fields": [
                  5
                ],
                "width": 4,
                "field_data": [
                  {
                    "field_type": "inputdate",
                    "name": "Return Date",
                    "heading": "Return Date",
                    "description": "Expected return date.",
                    "is_required": 1,
                    "id": 5
                  }
                ]
              }
            ]
          },
          {
            "id": 3,
            "name": "Purpose & Cost",
            "heading": "Purpose & Estimated Cost",
            "description": "Help approvers understand why you need to travel.",
            "folder": "0",
            "rowcolumns": [
              6,
              7
            ],
            "columns": [
              {
                "id": 6,
                "name": "Column 6",
                "fields": [
                  6
                ],
                "width": 6,
                "field_data": [
                  {
                    "field_type": "selectfield",
                    "name": "Travel Purpose",
                    "heading": "Travel Purpose",
                    "description": "Select the primary reason for travel.",
                    "is_required": 1,
                    "field_options": "{\"\": {\"Client Meeting\": \"client_meeting\",\"Conference or Event\": \"conference\",\"Training\": \"training\",\"Internal Offsite\": \"internal_offsite\",\"Sales Presentation\": \"sales_presentation\"}}",
                    "id": 6
                  }
                ]
              },
              {
                "id": 7,
                "name": "Column 7",
                "fields": [
                  7
                ],
                "width": 6,
                "field_data": [
                  {
                    "field_type": "inputnumber",
                    "name": "Estimated Cost",
                    "heading": "Estimated Total Cost (USD)",
                    "description": "Include flights, lodging, per diem, and incidentals.",
                    "is_required": 1,
                    "placeholder": "2200",
                    "id": 7
                  }
                ]
              }
            ]
          },
          {
            "id": 4,
            "name": "Logistics",
            "heading": "Logistics & Preferences",
            "description": "Capture any special requirements.",
            "folder": "0",
            "rowcolumns": [
              8,
              9
            ],
            "columns": [
              {
                "id": 8,
                "name": "Column 8",
                "fields": [
                  8
                ],
                "width": 6,
                "field_data": [
                  {
                    "field_type": "inputradio",
                    "name": "Travel Advance Needed",
                    "heading": "Do you need a travel advance?",
                    "description": "Indicate if finance should issue an advance.",
                    "is_required": 1,
                    "field_options": "[{\"Yes, please arrange an advance\": \"yes_advance\"}, {\"No, I will submit expenses after travel\": \"no_advance\"}]",
                    "id": 8
                  }
                ]
              },
              {
                "id": 9,
                "name": "Column 9",
                "fields": [
                  9
                ],
                "width": 6,
                "field_data": [
                  {
                    "field_type": "inputurl",
                    "name": "Itinerary Link",
                    "heading": "Preferred Itinerary Link",
                    "description": "Link to proposed flights or travel planner (optional).",
                    "is_required": 0,
                    "placeholder": "https://",
                    "id": 9
                  }
                ]
              }
            ]
          },
          {
            "id": 5,
            "name": "Support",
            "heading": "Supporting Information",
            "description": "Upload any documents required for approval.",
            "folder": "0",
            "rowcolumns": [
              10
            ],
            "columns": [
              {
                "id": 10,
                "name": "Column 10",
                "fields": [
                  10
                ],
                "width": 12,
                "field_data": [
                  {
                    "field_type": "fileupload",
                    "name": "Supporting Documents",
                    "heading": "Upload Supporting Documents",
                    "description": "Conference invite, client agenda, or justification (PDF).",
                    "is_required": 0,
                    "id": 10
                  }
                ]
              }
            ]
          },
          {
            "id": 6,
            "name": "Policy Agreement",
            "heading": "Policy Agreement",
            "description": "Acknowledge company travel guidelines.",
            "folder": "0",
            "rowcolumns": [
              11
            ],
            "columns": [
              {
                "id": 11,
                "name": "Column 11",
                "fields": [
                  11
                ],
                "width": 12,
                "field_data": [
                  {
                    "field_type": "inputcheckbox",
                    "name": "Policy Confirmation",
                    "heading": "Policy Confirmation",
                    "description": "Confirm you have reviewed the travel policy before submitting.",
                    "is_required": 1,
                    "field_options": "[{\"I agree to follow the company travel and expense policy.\": \"policy_agreed\"}]",
                    "id": 11
                  }
                ]
              }
            ]
          },
          {
            "id": 7,
            "name": "Trip Summary",
            "heading": "Trip Summary",
            "description": "Share additional context for approvers.",
            "folder": "0",
            "rowcolumns": [
              12
            ],
            "columns": [
              {
                "id": 12,
                "name": "Column 12",
                "fields": [
                  12
                ],
                "width": 12,
                "field_data": [
                  {
                    "field_type": "textarea",
                    "name": "Trip Summary Notes",
                    "heading": "Trip Summary",
                    "description": "Outline key meetings, expected outcomes, and travel companions.",
                    "is_required": 0,
                    "placeholder": "Meeting agenda, partner names, travel requirements...",
                    "id": 12
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "user_action": {
      "type": "show_success_message",
      "message": "Your travel request has been submitted. We will follow up after approval review.",
      "url": ""
    }
  }
}
