From 611b8a9600562075a3dee03f91b2678d5d69d5d0 Mon Sep 17 00:00:00 2001 From: justin Date: Wed, 29 Apr 2026 11:46:11 -0500 Subject: [PATCH] Validate Q1b and Q2 before proceeding to Step 2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Users could skip Q1b (customer type) and Q2 (voice delivery) and hit Next — the wizard silently defaulted to retail. Now validates: - Q1b must be answered (customer type selected) - Q2 must be answered if voice is checked and not wholesale-only Co-Authored-By: Claude Opus 4.6 (1M context) --- site/public/order/fcc-carrier-registration/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/site/public/order/fcc-carrier-registration/index.html b/site/public/order/fcc-carrier-registration/index.html index 43b2fe6..1796753 100644 --- a/site/public/order/fcc-carrier-registration/index.html +++ b/site/public/order/fcc-carrier-registration/index.html @@ -514,6 +514,8 @@ select:focus,input:focus{outline:none;border-color:#1e3a5f;box-shadow:0 0 0 2px // ── Step 1 → 2: Derive registrations ── document.getElementById('btn-next-1').addEventListener('click', function() { if (wizard.serviceTypes.length === 0) { alert('Please select at least one service type.'); return; } + if (!document.querySelector('[data-custtype].selected')) { alert('Please select who your customers are (retail, wholesale, or both).'); return; } + if (wizard.serviceTypes.indexOf('voice') >= 0 && wizard.customerType !== 'wholesale' && !wizard.voiceDelivery) { alert('Please select how you will deliver voice service.'); return; } var hasVoice = wizard.serviceTypes.indexOf('voice') >= 0; var hasBroadband = wizard.serviceTypes.indexOf('broadband') >= 0;