Re: Re: Over riding the default error messages

Joel Palmius <[email protected]> Wed, 10 Aug 2005 07:57:45 +0200 (CEST)
Newsgroups gmane.comp.apache.mod-survey.general
Message-ID <[email protected]>
Maybe we should template the error message page too. I have received 
requests for this earlier, and with the template system it shouldn't be 
too hard to do. I guess. :-)

   // Joel

On Mon, 8 Aug 2005, Martin Ertl wrote:

> 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
>>
>
>
Skickat av Joel Palmius <[email protected]>
till survey-discussion