Re: redirection on submit
Joel Palmius <[email protected]> Tue, 1 Mar 2005 11:00:37 +0100 (CET)
| Newsgroups | gmane.comp.apache.mod-survey.general |
|---|---|
| Message-ID | <[email protected]> |
Another theoretical possibility which I have not tested is to use a perl
snippet to change the CONTINUE parameter of the SURVEY tag.
Something like
<SURVEY .. CONTINUE="default.html">
..
<SUBMIT VISIBLE="no">
{|
if($session->getValue("SUBMITTED_SOMEVAR") eq 1)
{
$document->SetOption("CONTINUE","someotherpage.html");
}
|}
</SUBMIT>
..
</SURVEY>
You might have to experiment a bit with this. All submitted variable
values should be available through the session with the names
SUBMITTED_[variable name].
There might be reasons why this won't work, I'll check when I have time to
test it.
// Joel
On Tue, 1 Mar 2005, Joel Palmius wrote:
> That's true, this falls between the different options. There is not straight
> out any way to do content routing to a post-survey page.
>
> For now I think making an external script would be the easiest way to solve
> it, but I note the problem in my Todo file and will think about a better way
> to solve it.
>
> // Joel
>
>
> On Mon, 28 Feb 2005, allan harold wrote:
>
>> I am trying to figure out how to send the survey subject to different
>> destinations on submit dependent on their response to an earlier survey
>> element.
>> What I am finding difficult is how to do this at submit. I can see how to
>> do it
>> during a survey to route to different pages. But as far as I can see, at
>> submit
>> you can be directed to only one page.
>>
>> The only option that I can see is to include a code snippet to set a
>> cookie that
>> a destination page out side of mod_survey can use for a further redirect.
>>
>> Thanks in advance for any suggestions
>>
>> regards,
>>
>> allan
>>
>> Skickat av allan harold <[email protected]>
>> till survey-discussion
>>
> Skickat av Joel Palmius <[email protected]>
> till survey-discussion
>
>
Skickat av Joel Palmius <[email protected]>
till survey-discussion