Hi All!
I'd appreciate it if somebody could help me with this problem. I have a form with 2 submit buttons, one is called 'agree' and the other one is 'disagree'. I want to redirect the page depending on the button clicked once the form is submitted but I can't seem to make it work. Here is the code I used and I placed it at the top of the form. THe form's name is 'register'.
if {[template::form::get_button register] == "agree"} {
template::form create register -action ${subsite_url}register/user-new
}
else {
template::form create register -action {subsite_url}home/
}
Is there something wroing with my code? Please help as this is my first time writing something using OpenACS. Thank you!