This topic is locked
[SOLVED]

 Redirect page if checkbox has been selected

6/18/2012 12:26:40 PM
ASPRunnerPro General questions
C
cordaco author

I would like to redirect to another page if a checkbox has been previously selected on the form.
For example I have a proofreading page setup as an Edit_Page. My customers get an email notification when their proof is ready with a link to this Edit_Page. Here they can approve their ad or make changes. For those who select "Approve" via a checkbox, I would like the Edit_Page to not load again so they may not make additional changes or change the "Approved" checkbox. I am thinking a "redirect if checkbox, etc...." code would help me.
Anyone out there have something I can use. I was hoping to use the Event section of ASPRunner.

Sergey Kornilov admin 6/19/2012

You can use AfterAdd event in ASPRunnerPro.
Sample code:

if values("Approve")=1 then

response.redirect "someothepage.asp"

end if