From 4f9a1ed7fd9ab569fbb5c9545b668154baef0628 Mon Sep 17 00:00:00 2001 From: Daniel Covington Date: Fri, 21 Aug 2026 10:27:28 -0400 Subject: [PATCH] Base Blue AV Envelope page on purple envelope stock, clear hidden answers Page 3 (Blue AV Envelope Order Form) now shows only when the purple envelope stock question is answered "KCI's stock" - choosing "My own stock" skips it, since KCI wouldn't be sourcing envelopes either way. Falls back to visible if that question was never reached. Also sets clearInvisibleValues: "onHidden" on the survey so answers to a question don't linger after the question that revealed it gets changed back (e.g. flipping "purchase blue AV envelopes?" from Yes to No no longer leaves the permit/nonprofit-status answers underneath it in place) - applies to every conditional branch on the form, not just this one. Co-Authored-By: Claude Sonnet 5 --- app/views/Order/continue.asp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/Order/continue.asp b/app/views/Order/continue.asp index 0f27d62..8462796 100644 --- a/app/views/Order/continue.asp +++ b/app/views/Order/continue.asp @@ -71,6 +71,7 @@ showQuestionNumbers: "off", completeText: "Submit Order", checkErrorsMode: "onNextPage", + clearInvisibleValues: "onHidden", completedHtml: "

Thank you for submitting your order.

", pages: [ { @@ -115,11 +116,11 @@ }, { type: "radiogroup", name: "PurplePrintOption", - title: "Would you like KCI to print addresses on your purple envelopes or state of Michigan permit only?", + title: "Would you like KCI to print voter addresses on your purple envelopes or state of Michigan permit only?", visibleIf: "{PurpleWantsQuote} = true", isRequired: true, choices: [ - { value: "AddressesAndPermit", text: "Addresses and state of Michigan permit" }, + { value: "AddressesAndPermit", text: "Voter Addresses and state of Michigan permit" }, { value: "PermitOnly", text: "State of Michigan permit only" } ] }, @@ -208,6 +209,7 @@ { name: "blueEnvelope", title: "3. Blue AV Envelope Order Form", + visibleIf: "{PurpleEnvelopeStock} <> 'OwnStock'", elements: [ { type: "boolean", name: "BlueWantsQuote", labelTrue: "Yes", labelFalse: "No",