Redirect or show a CMS page
What it does
A confirmation can take the visitor to another page after they send the form, in the same browser tab. There are two types:
- CMS Page opens one of your store's CMS pages. A CMS page is a content page you make in Content → Pages, such as a thank-you page.
- Redirect opens a page of your store, such as
/delivery-information, or a full web address on another site.
You can show your thank-you message on that page too. With Also Show the Message, it appears at the top of the page as a green notice.
You set this up in the form's settings, in the Confirmation section. Change the Default Confirmation to send every visitor there, or add a confirmation with conditions to send only some of them.
Before you start
- The form is switched on and placed on your store. See Displaying forms.
- For CMS Page, the page exists and is enabled. Only enabled pages can be chosen.
Steps
Send every visitor to the same page
- Go to Content → WebForms → Manage Forms.
- Click the form's name.
- Click Confirmation in the list of sections on the left, then click Default Confirmation.
- In Type, select CMS Page or Redirect.
- For CMS Page, select the page in CMS Page. For Redirect, enter the address in Redirect URL: a path
on your store that starts with
/, or a full web address such ashttps://example.com/thanks. - If you want your message on that page too, turn on Also Show the Message. The Message box appears. Enter the text.
- Click Save.
The Default Confirmation keeps its message even when its type is a page. Visitors don't see it unless Also Show the Message is on.

Send only some visitors to a page
- Open the form's Confirmation section, as in steps 1 to 3 above.
- Click the arrow next to Add New Confirmation, then select Redirect or CMS Page.
- In Name, enter a name for the confirmation, for example
Reupholstery. It names the confirmation in the admin list. Visitors don't see it. - Set the page or the address, and Also Show the Message if you want it, as in steps 5 and 6 above.
- Under Conditions, click Add Condition and choose the answer that sends the visitor there. See Conditional confirmations.
- If the confirmation is ready, turn on Enabled. It's off by default.
- Click Save.
The form's own redirect setting
The form's User Experience section also has a Redirect URL field. It's another view of the Default Confirmation:
- Saving an address there turns the Default Confirmation into a Redirect to that address.
- When the Default Confirmation is a Redirect, the field shows its address.
- When the Default Confirmation is a Redirect, clearing the field and saving again turns it back into a message.
- While the Default Confirmation is a CMS Page, saving the form with the field empty leaves it a CMS Page.
To show your message on the page as well, set the address in the Default Confirmation, not in this field: only the confirmation has Also Show the Message.
Put answers into the address
A Redirect address can carry details of the submission, for example to pass a reference number to a partner site. Write one of these placeholders where the value goes, exactly as shown:
| Placeholder | What it puts in the address |
|---|---|
{{var result.<code>.value}} | The visitor's answer to the field with that code, such as {{var result.email.value}}. |
Other {{var result.…}} values | Other details of the submission: {{var result.result_id}} (its number), {{var result.reference_number}}, {{var result.<code>.name}} (a field's name). |
{{var reference}} | The submission's reference number. |
{{var webform_name}} | The form's name. |
{{var webform.id}} | The form's number. |
{{store url="…"}}, {{store direct_url="…"}} | An address on your store, such as {{store url="checkout/cart"}}. |
{{config path="…"}} | A store setting, such as your store's base address. |
For example: https://partner.example/lead?ref={{var reference}} or /thank-you?email={{var result.email.value}}.
- An answer goes into the address only after the site part: after the
/of a path on your store, or after the host of a full address. It never becomes part of the host. - Answers are encoded, so an answer with
&,#or a line break arrives whole and doesn't cut the address short. - At the start of the address, a store address such as
{{store url=""}}or{{store direct_url="…"}}, or your store's base address from{{config path="…"}}, is the address itself. A{{store}}placeholder always needs itsurl="…"ordirect_url="…"part, even if empty.
If the address has a placeholder of another kind, such as {{block}}, {{widget}} or {{if}}, a modifier such as
|raw, or an answer before the path, WebForms doesn't use it. The visitor sees
the confirmation message and stays on the page.
What you should see
Open the form on your store and send it with answers that lead to the page.
- The browser tab moves to the CMS page or the address. The address bar shows that page's own address.
- With Also Show the Message, your message appears above the page's content as a green notice.
- If the form opens from a popup button, the whole browser tab moves to the page, not only the window.
Limits
- An address made for WebForms 3 can stop working. WebForms 3 accepted any placeholder there; WebForms 4 accepts only the ones above. The upgrade check lists every such address by form, store view and confirmation.
- In the green notice, the Reference Number tag shows the submission's reference number. That needs reference numbers on for the form: see Reference Number Mode in Form settings.
- In the green notice, Response Summary runs the labels and answers together on one line. To list the answers, use a message on the form's page instead.
- If you pick a store view in Scope at the top of the settings page, the form's Redirect URL field is greyed out. Its note says to set it on All Store Views first.
Troubleshooting
- "This address cannot be used: enter a path on this store or a full http(s) address." The address is
incomplete, for example
www.example.com/thanks. Start it with/for a page of your store, or write the full address withhttps://. - The visitor sees a message instead of the page. The confirmation is switched off, or its conditions don't match that visitor's answers: see Conditional confirmations. Or the address has a placeholder WebForms doesn't fill in, or an answer before the path: see Put answers into the address. The store's system log names the address.
- The page opens without your message. Turn on Also Show the Message and enter the text.
What's next
- Conditional confirmations: decide which visitors go to which page, and in which order the confirmations are checked.
- Confirmation messages: show a message on the form's page instead, with a list of the visitor's answers.
- Form settings: the User Experience section with the Redirect URL field.