From 3ea47b52edccd7d18812dc1a24a5a86414466438 Mon Sep 17 00:00:00 2001 From: justin Date: Wed, 29 Apr 2026 10:48:53 -0500 Subject: [PATCH] Fix Q5 showing retail variant for wholesale carriers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Q5 was shown immediately on voice/broadband checkbox, before Q1b (customer type) was answered — always defaulting to retail variant. Now Q5 only appears after Q1b is answered, and the correct variant (retail vs wholesale) is set at that point. Co-Authored-By: Claude Opus 4.6 (1M context) --- site/public/order/fcc-carrier-registration/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/site/public/order/fcc-carrier-registration/index.html b/site/public/order/fcc-carrier-registration/index.html index 55b3e54..4e5017d 100644 --- a/site/public/order/fcc-carrier-registration/index.html +++ b/site/public/order/fcc-carrier-registration/index.html @@ -432,7 +432,7 @@ select:focus,input:focus{outline:none;border-color:#1e3a5f;box-shadow:0 0 0 2px document.getElementById('q1b').classList.toggle('hidden', !hasVoice && !hasBroadband); updateVoiceQuestions(); document.getElementById('q4').classList.toggle('hidden', !hasBroadband); - if (hasVoice || hasBroadband) document.getElementById('q5').classList.remove('hidden'); + // Q5 shown only after Q1b is answered (customer type determines which variant) }); }); // ── Q1b: Customer type ── @@ -443,8 +443,9 @@ select:focus,input:focus{outline:none;border-color:#1e3a5f;box-shadow:0 0 0 2px wizard.customerType = btn.dataset.custtype; // Re-evaluate whether to show Q2 or skip to Q3 updateVoiceQuestions(); - // Toggle Q5 variant: retail vs wholesale + // Show Q5 with the correct variant for customer type var isWholesaleOnly = wizard.customerType === 'wholesale'; + document.getElementById('q5').classList.remove('hidden'); document.getElementById('q5-retail').classList.toggle('hidden', isWholesaleOnly); document.getElementById('q5-wholesale').classList.toggle('hidden', !isWholesaleOnly); });