Confirmations and Variables
Choose what visitors see after they submit, and insert answers and site details into messages and emails. Available since Core Forms 5.4.0.
Confirmations
Open a form’s Settings tab and find Confirmations. The first confirmation whose rules match is used; the last one is the fallback.
- Click Add confirmation and give it a Name, for example “Sales enquiries”.
- Pick what it does under Show:
- A message: text written in the WordPress editor, with media and variables. Leave it empty to use the Success message from the Messages tab.
- A page on this site: choose a page.
- Go to a URL: any address. Tick Add the answers to the URL as query arguments to pass the answers on, and Open in a new tab if you want.
- Under Use when, click Add rule and build rules with the same comparisons as Conditional Logic. How rules combine sets all rules match or any rule matches. With no rules, a confirmation always matches.
- Use Move up and Move down to set the order.
Two more settings apply to messages:
- Hide form after success replaces the form with the confirmation message.
- Scroll to message smooth-scrolls to the message after submission.
Answers in a URL can end up in browser history and server logs. Only pass them to sites you trust.
Show visitors their answers
Put [cf_entry_summary] in a confirmation message or on a confirmation page:
[cf_entry_summary style="table" exclude="card_number,notes"]
style:table,listorcompact.exclude: field names to leave out, separated by commas.- On a confirmation page, the link carries a one-time code, never the answers or the entry ID. The code expires after 30 minutes (filter
cf_entry_summary_ttl), and pages that show a summary are never cached.
Forms made before 5.4
A form’s Success message and Redirect URL keep working as before. They become its first confirmation the next time you save its Settings.
Insert variable
An Insert variable button sits next to messages, confirmation messages, redirect URLs, email subjects and bodies, and default values in the builder. Variables are grouped:
| Group | Examples |
|---|---|
| Fields | Every field in the form, by its label |
| Form | Form title, form ID, entries left, entry limit, site name, site URL, admin email |
| Entry | All answers with labels, all answers except some, answer summary table, entry ID, visitor IP address, browser |
| User | Display name, email, username, user ID, first and last name |
| Page and URL | Page title, page URL, page ID, referrer URL, a URL parameter |
| Date | Date submitted, time submitted, timestamp (UTC) |
| Payment | Amount, currency, payment status, provider and payment ID |
Chips under each box show the variables it already uses.
[all:label exclude="card,notes"] and [all exclude="card,notes"] list every answer except the fields you name.
Developers can change the groups with the cf_variable_picker_groups filter. See Data Variables for every variable.