<?php $modx->sendRedirect($modx->makeUrl($whatever_document_id); ?>
function goToAnotherThankYouPage(&$fields){
global $modx;
//redirect to a different thank you page if new member.
if($fields['member'] == "no" ){
$modx->sendRedirect( $modx->makeUrl(155) );
}
}<?php
function goToAnotherThankYouPage(&$fields){
global $modx;
//redirect to a different thank you page if new member.
if($fields['systems'] == "1" ){
$modx->sendRedirect( $modx->makeUrl(16) );
}
if($fields['systems'] == "2" ){
$modx->sendRedirect( $modx->makeUrl(11) );
}
if($fields['systems'] == "3" ){
$modx->sendRedirect( $modx->makeUrl(6) );
}
if($fields['systems'] == "4" ){
$modx->sendRedirect( $modx->makeUrl(5) );
}
}
?>