We’re using WPForms to allow users to register on a food blog to save recipes. The registration form looks like this:
Throughout the site we feature a “Save Recipes” CTA that encourages them to signup by providing an email.
After filling out this form, they are redirected to the actual registration form and the “Email Address” field is pre-filled. The code below passes along all the filled out fields to the following form.
- Create form 1 (“Complete Your Registration” above) and embed it on a page.
- Create form 2 (“Save Recipes” above). Add a form class of
fields-to-confirmation, and set the “Confirmation” to the page containing form 1. You may also want to check “Disable storing entry information in WordPress”.
- Note the Form ID and Field ID for fields you’d like to copy from Form 2 => Form 1. You can find this in the WPForms form editor, or by viewing the source of a page that contains the field – you’ll see the field has an ID like
- Edit Form 1 (the one receiving form data). For each field you’d like to pre-populate, click “Advanced” and set the Default Value to query_var using the Form ID + Field ID:
Click the screenshots below for more context.