Re: problem with ILLEGALVAL in 3.2.2?

Joel Palmius <[email protected]> Fri, 18 Mar 2005 23:23:26 +0100 (CET)
Newsgroups gmane.comp.apache.mod-survey.general
Message-ID <[email protected]>
No, ILLEGALVAL does not have any function in a multichoice. The result of 
a multichoice is a comma-delimited list of checked values, and in 
consequence a list of no elements if no value was checked. This is 
considered a legal value.

This is at least the intended behavior. Has the behavior changed from 
earlier versions?

   // Joel


On Fri, 18 Mar 2005, Todd Slater wrote:

> I'd like to set up a question that a user doesn't have to answer, and if
> they don't answer it I'd like the value to be "7". Here's the item in
> question, but when I look at the data the value for it is blank/null. Is
> there anything wrong with my syntax?
>
> <CHOICE MULTI="yes" NAME="retplan" MUSTANSWER="no"
>  ILLEGALVAL="7" CAPTION="Have you completed or are you actively planning
>  for retirement in any of the following ways? Mark all that apply.">
>
> 	<CHOICEELEMENT CAPTION="Estate planning" VALUE="0" />
> 	<CHOICEELEMENT CAPTION="Drafting of a will" VALUE="1" />
> 	<CHOICEELEMENT CAPTION="Financial planning" VALUE="2" />
> 	<CHOICEELEMENT CAPTION="Investing in additional equity" VALUE="3" />
> 	<CHOICEELEMENT CAPTION="Researching federal or state retirement policy
> 	   issues" VALUE="4" />
> 	<CHOICEELEMENT CAPTION="Purchasing supplemental health insurance" VALUE=           "5" />
>        <CHOICEELEMENT CAPTION="Other" VALUE="6" />
>
> </CHOICE>
>
> Can you set ILLEGALVAL in a multi choice?
>
> Thanks,
> Todd
> Skickat av Todd Slater <[email protected]>
> till survey-discussion
>
Skickat av Joel Palmius <[email protected]>
till survey-discussion