Is it possible with webforms to redirect to another form and carry over the webform values from the first form?

Comments

quicksketch’s picture

Generally, 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.

netentropy’s picture

so 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.

quicksketch’s picture

Status: Active » Closed (fixed)

The 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.