updated form
by jimkennelly
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<title>Incident Report Form</title>
<style>
.page {
display: none;
}
.active {
display: block;
}
</style>
</head>
<body>
<div class="container">
<h2 class="mt-4">Incident Report Form</h2>
<!-- Progress Bar -->
<div class="progress mb-4">
<div id="progressBar" class="progress-bar" role="progressbar" style="width: 20%;" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">Step 1 of 5</div>
</div>
<form id="incidentReportForm">
<!-- Page 1: People Involved -->
<div class="page active" id="page1">
<h3>People Involved</h3>
<div class="form-group">
<label for="firstName">First Name(s)</label>
<input type="text" class="form-control" id="firstName" required data-toggle="tooltip" title="This is the name of the person involved (not necessarily the originator)">
</div>
<div class="form-group">
<label for="lastName">Last Name(s)</label>
<input type="text" class="form-control" id="lastName" required>
</div>
<div class="form-group">
<label for="department">Department Assigned</label>
<input type="text" class="form-control" id="department" required>
</div>
<div class="form-group">
<label for="title">Title</label>
<input type="text" class="form-control" id="title" required>
</div>
<button type="button" class="btn btn-primary" onclick="nextPage(1)">Next</button>
</div>
<!-- Page 2: Person Completing Report -->
<div class="page" id="page2">
...