Re: specifying an error file in the CASEROUTE command

Lorie Srivastava <[email protected]> Tue, 30 Aug 2005 18:55:07 +0000 (UTC)
Newsgroups gmane.comp.apache.mod-survey.general
Message-ID <[email protected]>
bugant <bugant <at> opinioni.net> writes:

> 
> hi,
> Lorie Srivastava wrote:
> > I have specified an error file for a CASEROUTE command to run in case of a
> > mistaken entry.
> > 
> > Yet, if I enter an invalid number, a default error message comes up, control
> > does not go to the file that I have specified and written.
> 
> What do you mean with "invalid"? I've read it as "a not listed case". Is 
> it right?
> 
> [snip]
> 
> > 	<CASEROUTE SWITCH="CTask" DEFAULT="error.survey">
> > 		<CASE VALUE="1" CONTINUE="....survey" />
> > 		<CASE VALUE="2" CONTINUE="....survey" />
> 
> it works fine for me. I'm using develpment version but I think for 
> stable is the same.
> 
> What type of questions are you using to assign CTask value?
> I've tested both choice and text.
> 
> stay tuned,
> bugant.
> Skickat av bugant <bugant <at> opinioni.net>
> till survey-discussion
> 
> 

Hello:

Thank you for testing - I am using a Text question to assign CTask:

<TEXT NAME="CTask" MUSTANSWER="yes" ILLEGALVAL="-999" NUMERICAL="yes" MAXLEN="2"
MINVAL="1" MAXVAL="10" CAPTION="Please enter the number that was rolled:" />

Is it the ILLEGALVAL that is doing it?

Thank you!

Lorie



Skickat av Lorie Srivastava <[email protected]>
till survey-discussion