From e4e3055bb18ae9975dcf9e0115565ae848566996 Mon Sep 17 00:00:00 2001 From: Matthew Jackson Date: Fri, 6 Mar 2026 21:05:03 -0800 Subject: [PATCH] Skip Phone/Name fieldsets that wrap already-handled input groups Greenhouse wraps phone inputs in a fieldset with legend "Phone" that gets picked up as an unanswered radio group. Skip these since the actual phone input is handled separately. Co-Authored-By: Claude Opus 4.6 --- lib/form_filler.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/form_filler.mjs b/lib/form_filler.mjs index 1580ed2..b8f9eb6 100644 --- a/lib/form_filler.mjs +++ b/lib/form_filler.mjs @@ -664,6 +664,9 @@ Answer:`; // --- Fieldsets (radios and checkbox groups) --- for (const field of snap.fieldsets) { if (!field.isCheckboxGroup && field.anyChecked) continue; + // Skip fieldsets that are just labels for input groups already handled (e.g. Phone widget) + const fsLegendLower = field.legend.toLowerCase(); + if (fsLegendLower === 'phone' || fsLegendLower === 'mobile' || fsLegendLower === 'name') continue; let answer = this.answerFor(field.legend); if (answer && field.options.length > 0) {