Conditional "Must Answer" question

"George Clark" <[email protected]> Sat, 5 Mar 2005 17:58:59 -0500
Newsgroups gmane.comp.apache.mod-survey.general
Message-ID <[email protected]>
Hi all,

Is there any way to conditionally supply the value of "MUSTANSWER=" during
submit processing?

It seems like a simple situation.  I don't want to go to a multiple page
survey, but I'd like one or two questions to be optional based upon an earlier
question on the same page. (I've also tried it by passing the variable from the
prior page, but that doesn't seem to work either.

I guess the manual "References to variable answers submitted on an earlier page
can be inserted in all visible output," really means what it says about visible
output. <g>  Is there any easy way to accomplish this?

  <CHOICE NAME="flying" CAPTION="Are flying or riding along?" MUSTANSWER="yes" 
>
    <CHOICEELEMENT VALUE="0" CAPTION="Pilot Flying, no empty seats " />
    <CHOICEELEMENT VALUE="1" CAPTION="Pilot Flying, have seats available" />
    <CHOICEELEMENT VALUE="2" CAPTION="Passenger - I need a ride" />
  </CHOICE>

  <TEXT NAME="aircra" MAXLEN="15" CAPTION="Aircraft Type"
MUSTANSWER={!flying/0:"yes",1:"yes",2:"no"!} />
  <TEXT NAME="speed" NUMERICAL="yes"
MUSTANSWER={!flying/0:"yes",1:"yes",2:"no"!} CAPTION="Cruise Speed" />
  <TEXT NAME="seats" NUMERICAL="yes" MUSTANSWER={!flying/0:"no",1:"yes",2:"no"!}

Thanks,
George Clark
Skickat av "George Clark" <[email protected]>
till survey-discussion