Przeglądaj źródła

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 <noreply@anthropic.com>
master
Daniel Covington 2 dni temu
rodzic
commit
4f9a1ed7fd
1 zmienionych plików z 4 dodań i 2 usunięć
  1. +4
    -2
      app/views/Order/continue.asp

+ 4
- 2
app/views/Order/continue.asp Wyświetl plik

@@ -71,6 +71,7 @@
showQuestionNumbers: "off",
completeText: "Submit Order",
checkErrorsMode: "onNextPage",
clearInvisibleValues: "onHidden",
completedHtml: "<h3>Thank you for submitting your order.</h3>",
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",


Ładowanie…
Anuluj
Zapisz

Powered by TurnKey Linux.