Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is it possible with webforms to redirect to another form and carry over the webform values from the first form?
Comments
Comment #1
quicksketchGenerally, this is not possible. Why wouldn't you use a multipage form? You can pass variables by using %get tokens as the default value, but token support is not available in the redirect URL, so this is not usually possible.
Comment #2
netentropy CreditAttribution: netentropy commentedso there is not general POST ability with either webforms or drupal core form api?
isn't POST a rather common need to pass variables "invisibly" from one field to the next,
the reason this can't be a multistep is I wish to populate the email field on the registation form after a user fills in a survey populated by webform,
the flow would be hit submit, webform records the result, redirect to user registration and the user does not have to retype the information into the registration if given in the webform.
Comment #3
quicksketchThe form you're trying to populate then is the registration form, which doesn't have the ability to use tokens at all, so it doesn't really matter what capabilities Webform provides here. I'd suggest using hook_form_alter() to load any Webform submissions and prepopulate the form that way.
I'm closing this issue directly, as I don't help with custom coding.