my fault
ok..in your form->Submit->Custom you have to first click on 'generate code' or something like that...should look like:
function ff_yourFormName_submitted(status)
{
} // some text here
Then paste the above mentioned code in this:
function ff_yourFormName_submitted(status)
{
if (status != 0) {
alert(
"Sorry, but submission of you entries unfotunately failed.n"+
"We will check this problem and hope on your understanding.n"+
"You will be redirected to the home page now."
);
ff_returnHome();
} else
ff_switchpage(ff_getPageByName('fru_thankyou')); // thank you
} // some text here
The function-part(function ff_yourFormName_submitted(status){...}) is very important!
If this is done and you couldn't get the thank you page, try to insert alert('testalert'); in this script to test if your script is fired when form is submitted
hope it helps!!
matthias