Additional Processing Field - Redirect to Dynamic URL
By setting the $node->webform['confirmation'] key, you can change where Webform redirects the user after form processing has been completed. Use the code below to change the URL based on your own criteria.
<?php
// Redirect to Google when done.
$node->webform['confirmation'] = 'http://google.com';
// Redirect to node 1 (an internal Drupal path).
$node->webform['confirmation'] = 'internal:node/1';
// Redirect to the contents of a hidden field.
$node->webform['confirmation'] = $form_values['submitted_tree']['my_hidden_value'];
?>
Add this code to?
This was my goal, get to the user edit page post registration because of an upon-join webform survey...
<?phpglobal $user;
$node->webform['confirmation'] = 'internal:user/'.$user->uid.'/edit';
?>
Be advised all that this code belongs in the Webform Advanced Settings > Additional Processing:
/:)