Re: problem with ILLEGALVAL in 3.2.2?

Todd Slater <[email protected]> Fri, 18 Mar 2005 18:51:12 -0500
Newsgroups gmane.comp.apache.mod-survey.general
Message-ID <[email protected]>
I see; I had never tried this before but the person I'm writing the
survey for expected that a person might not select any of the choices,
but did not want to put a "none of the above" option for fear of getting
selections *and* none of the above, thus invalidating the answer. At the
same time, she wants a value other than null if nothing is selected.

Todd

On Fri, Mar 18, 2005 at 11:23:26PM +0100, Joel Palmius wrote:
> 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?
Skickat av Todd Slater <[email protected]>
till survey-discussion