redirect help with different redirects based on a form input

The task is to change the form redirect depending on how they answer the form question: "Are currently a 8thAFHS member?" ....radio buttons yes/no"

I do an onchange in form to do an if/then function. The problem I'm having is doing the if/then. No matter how I put the form variables in, it doesn't work. I can get it to work with numbers, but not the yes/no form text. If I leave out the if/then in the function and leave the code for the redirect it works (document.NxtGenForm.redirect.value = "member.htm";) Ugh!!!! I think is has sometime to do with my lack of knowledge in if/then with text.

function doRedirect() {
if ( This is where my problem seems to be )
{document.NxtGenForm.redirect.value = "member.htm";}
}
else
{document.NxtGenForm.redirect.value = "notmember.htm";}
}

//-->

.
.
.
.
.
Are currently a 8thAFHS member?     Yes

         No

.
.
.
.
.

By bobbooks on

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Finally figured out a script that worked !

Thanks to anyone who was working on a fix for me. I finally figured out a solution and it is working fine now.

Bob

Stalk me!

Drupal Association Member