Skip to content

Commit 34324b1

Browse files
jeremymanningclaude
andcommitted
Remove validation check and filter out signature/date labels from checklist
- Remove the check that prevents PDF generation if not all boxes are checked (encourages people to just check boxes without doing tasks) - Filter out "Sign below" and "Date" labels from the interactive checklist (these aren't actual tasks, just signature section labels) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 77596be commit 34324b1

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

checklist.js

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,19 @@ function convertChecklistToInteractive() {
203203
items.push(currentItem.trim());
204204
}
205205

206-
// Clean up items - remove extra whitespace
206+
// Clean up items - remove extra whitespace and filter out signature/date labels
207207
items = items.map(function(item) {
208208
return item.replace(/\s+/g, ' ').trim();
209+
}).filter(function(item) {
210+
// Filter out signature section labels that aren't actual checklist items
211+
var lowerItem = item.toLowerCase();
212+
if (lowerItem.startsWith('sign below') ||
213+
lowerItem.startsWith('date:') ||
214+
lowerItem === 'date' ||
215+
lowerItem.startsWith('signature')) {
216+
return false;
217+
}
218+
return true;
209219
});
210220

211221
if (items.length === 0) return;
@@ -473,18 +483,6 @@ function loadChecklistState() {
473483

474484
// Email functionality - generates PDF with jsPDF and opens email client
475485
function emailChecklist() {
476-
// Check if all items are checked
477-
var checkboxes = document.querySelectorAll('.interactive-checklist input[type="checkbox"]');
478-
var allChecked = true;
479-
checkboxes.forEach(function(cb) {
480-
if (!cb.checked) allChecked = false;
481-
});
482-
483-
if (!allChecked) {
484-
alert('Please check all items before submitting.');
485-
return;
486-
}
487-
488486
// Check if signature exists
489487
if (signatureCanvas) {
490488
var ctx = signatureCanvas.getContext('2d');

0 commit comments

Comments
 (0)