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 <noreply@anthropic.com>
This commit is contained in:
@@ -664,6 +664,9 @@ Answer:`;
|
|||||||
// --- Fieldsets (radios and checkbox groups) ---
|
// --- Fieldsets (radios and checkbox groups) ---
|
||||||
for (const field of snap.fieldsets) {
|
for (const field of snap.fieldsets) {
|
||||||
if (!field.isCheckboxGroup && field.anyChecked) continue;
|
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);
|
let answer = this.answerFor(field.legend);
|
||||||
if (answer && field.options.length > 0) {
|
if (answer && field.options.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user