Re: Over riding the default error messages

Martin Ertl <[email protected]> Mon, 08 Aug 2005 11:11:04 +0200
Newsgroups gmane.comp.apache.mod-survey.general
Message-ID <[email protected]>
I'm not sure but I think the error page itself is generated
in Survey/Slask.pm, sub IsError().
There it should be possible to change the style of the errormessage.

The message is created in Survey::Component::_XXX_::GetCheckValue().
If nothing other helps, replace the thing with
     $sub->{ERROR} = lprint("The question with caption") ...
with your own message.

br
Martin



Lorie Srivastava wrote:
> Hi:
> 
> I want to change the text of the error messages that are automatically
> generated. I have specified that all the survey questions must be answered. On
> occassion, a person will forget to answer a question.
> 
> The large red "Submit error" message that comes up seems to inhibit people from
> reading further the actually helpful info that comes up later (the question with
> caption... etc.)
> 
> Joel has been outstanding in his help, but though I have changed the text in the
> /Survey/Submit.pm file, this isn't working. Our Tech Admin found another file
> under /Lang/src that seems to be the right one, but I noticed that in this file,
> it outputs "Submit Error 2" but the message I get if I miss a question does not
> have the "2" in it.
> 
> Does anyone have any ideas on where I can change these messages?
> 
> Many thanks
> 
> Lorie
> 
> Skickat av Lorie Srivastava <[email protected]>
> till survey-discussion
>
signature.asc (application/pgp-signature, 254 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC9yGrfjpzR4RmB04RAvrdAJ4r1QiuzM0otEowRbjUgRdlmjQxFQCcChll
XmqgDVqGrEV1WTtyKbkfCSI=
=go1C
-----END PGP SIGNATURE-----