---
title: "Contact Form 7 thank-you redirects for real estate websites"
description: "Scope a Contact Form 7 redirect to the intended inquiry form, trigger it on successful mail sending, and preserve errors and delivery checks."
canonical: "https://scalewithsearch.com/articles/contact-form-7-agent-thank-you-redirect"
---
## Site navigation

- [Scale With Search](https://scalewithsearch.com/)
- Services
  - Services
    - [AI systems](https://scalewithsearch.com/ai-systems)
    - [Site build](https://scalewithsearch.com/work#site-build)
    - [Whole website fix](https://scalewithsearch.com/work#whole-website-fix)
    - [Content library with SEO](https://scalewithsearch.com/work#content-library)
    - [Working session](https://scalewithsearch.com/audit)
  - Start here
    - [Send your brief](https://scalewithsearch.com/work#send-your-brief)
    - [Example scope](https://scalewithsearch.com/work#review-the-example-scope)
  - [Prices and terms](https://scalewithsearch.com/work#prices-and-terms)
- Industries
  - Real estate
    - [Real estate agents and teams](https://scalewithsearch.com/for/real-estate)
    - [Platforms, ownership, and IDX](https://scalewithsearch.com/for/real-estate/real-estate-website-platforms-ownership-idx)
    - [Search, content, and AI](https://scalewithsearch.com/for/real-estate/real-estate-search-content-ai)
    - [Inquiries, campaigns, and handoffs](https://scalewithsearch.com/for/real-estate/real-estate-website-inquiries-campaigns-handoffs)
    - [Buyer, seller, and local pages](https://scalewithsearch.com/for/real-estate/real-estate-buyer-seller-local-resources)
    - [Rules, privacy, and trust](https://scalewithsearch.com/for/real-estate/real-estate-website-rules-privacy-trust)
  - Browse by business
    - [Trades and home services](https://scalewithsearch.com/for/#group-trades)
    - [Health, wellness, and animal care](https://scalewithsearch.com/for/#group-practices)
    - [Law, finance, and IT](https://scalewithsearch.com/for/#group-professional)
    - [Marketing and SEO agencies](https://scalewithsearch.com/for/#group-agencies)
    - [Shops and manufacturers](https://scalewithsearch.com/for/#group-manufacturing)
    - [Restaurants, shops, studios, and nonprofits](https://scalewithsearch.com/for/#group-local-services)
  - Chiropractic practices
    - [Chiropractic and wellness practices](https://scalewithsearch.com/for/chiropractic-and-wellness-practices)
    - [Chiropractic and physical therapy clinics](https://scalewithsearch.com/for/chiropractic-and-physical-therapy-clinics)
  - [All industries](https://scalewithsearch.com/for/)
- Resources
  - Free tools
    - [AI readiness check](https://scalewithsearch.com/check)
    - [Free tools](https://scalewithsearch.com/tools/)
    - [Free Starter Kit](https://scalewithsearch.com/kit/business-memory-starter-kit.zip)
  - Guides
    - [AI-native library](https://scalewithsearch.com/ai-native)
    - [Industry intelligence](https://scalewithsearch.com/intelligence)
    - [Office job guides](https://scalewithsearch.com/guides/)
    - [Business memory](https://scalewithsearch.com/articles/business-memory-for-ai-agents-guide)
    - [Agent governance](https://scalewithsearch.com/articles/ai-agent-governance-guide-small-business)
    - [Migration and ownership](https://scalewithsearch.com/articles/leaving-vendor-ai-memory-guide)
  - Articles
    - [All articles](https://scalewithsearch.com/articles/)
    - [What changed](https://scalewithsearch.com/changes/)
- About
  - Evidence
    - [Proof](https://scalewithsearch.com/proof)
  - Scale With Search
    - [About](https://scalewithsearch.com/about)
    - [How it works](https://scalewithsearch.com/how-it-works)

# Add a Contact Form 7 thank-you redirect for real estate inquiries

Use Contact Form 7's `wpcf7mailsent` event when an approved inquiry workflow needs a separate thank-you destination. Keep the redirect limited to the intended form and test failures separately. [Contact Form 7 redirect guidance, checked 2026.10.22](https://contactform7.com/redirecting-to-another-url-after-submissions/).

The plugin author discourages unnecessary redirects and explains that analytics tracking does not require a thank-you page. Choose the destination for a useful visitor handoff. [Contact Form 7's stated recommendation, checked 2026.10.22](https://contactform7.com/redirecting-to-another-url-after-submissions/).

## When should a real estate website use a separate thank-you page?

Use it when the approved next step needs its own destination. A visitor might need to read consultation preparation or choose an optional appointment. Write the purpose before requesting the redirect. Keep the existing inline result if it already supports the intended handoff.

## Which form should the implementation target?

Target the form named in the brief. Record its actual Contact Form 7 identifier and every page where it appears. Ask the maintainer to distinguish the seller and buyer workflows. Shared website styling does not establish that different forms should share a destination.

## Which event should trigger the redirect?

Use `wpcf7mailsent`. Contact Form 7 defines it as the event after successful Ajax submission and mail sending. [Official DOM-event definitions, checked 2026.10.22](https://contactform7.com/dom-events/).

## Why should the implementation avoid a generic submission trigger?

`wpcf7submit` fires after Ajax submission regardless of the other outcomes. Restrict the redirect to the successful event. [Official submission-event distinction, checked 2026.10.22](https://contactform7.com/dom-events/). Write the expected behavior for rejected and failed submissions before accepting the implementation.

## How should the script distinguish the intended form?

Compare `event.detail.contactFormId` with the actual approved form identifier. Contact Form 7 documents that property for form-specific handlers. [Official form-ID example, checked 2026.10.22](https://contactform7.com/dom-events/). Ask the maintainer to demonstrate that unrelated forms keep their existing behavior.

## What belongs in the redirect implementation request?

Request an event listener for `wpcf7mailsent`, the form-ID comparison, and navigation to the approved destination after a match. Require the maintainer to show the installed script and the tested page. Keep destination selection fixed by the brief rather than visitor-entered text.

## Where should the destination come from?

Use the final page address approved by the website owner. Require the destination to exist before testing the form. Keep the address in the implementation record. This draft supplies no invented domain or unverified thank-you-page URL to copy into a live website.

## How should script installation be scoped?

Ask the website maintainer to use the site's maintained code-loading method. Record where the script lives and how it reaches the intended page. Review an isolated preview before release. Keep the redirect change separate from an unrelated theme or plugin upgrade.

## Should the maintainer use the old success hook?

Contact Form 7 says `on_sent_ok` is no longer recommended. Use its documented DOM-event approach for the proposed redirect. [Official redirect instructions, checked 2026.10.22](https://contactform7.com/redirecting-to-another-url-after-submissions/). Ask the maintainer to identify older handlers before adding a replacement.

## What happens when the form uses non-Ajax submission?

The documented DOM events do not fire in non-Ajax mode. Confirm the actual submission mode before relying on this approach. [Official event troubleshooting, checked 2026.10.22](https://contactform7.com/faq/dom-event-doesnt-work/).

## How should a missing event be investigated?

Check whether the expected event fires before changing navigation code. Contact Form 7 also directs maintainers to inspect JavaScript errors. [Official troubleshooting sequence, checked 2026.10.22](https://contactform7.com/faq/dom-event-doesnt-work/). Save the observed failure and the affected page for the repair brief.

## What should happen after invalid input?

Require the visitor to remain able to read and correct the error. Contact Form 7 exposes `wpcf7invalid` for invalid-input outcomes. [Official invalid-event definition, checked 2026.10.22](https://contactform7.com/dom-events/). Test that this outcome does not navigate to the success destination.

## What should happen after spam rejection?

Require the spam-rejected test to avoid the success destination. Contact Form 7 distinguishes this outcome with `wpcf7spam`. [Official spam-event definition, checked 2026.10.22](https://contactform7.com/dom-events/). Arrange that test in a controlled environment rather than sending repeated submissions to a live recipient.

## What should happen when mail sending fails?

Require the failure result to remain visible without a success redirect. Contact Form 7 distinguishes failed sending with `wpcf7mailfailed`. [Official failure-event definition, checked 2026.10.22](https://contactform7.com/dom-events/). Keep mail repair in the [Contact Form 7 delivery guide](/articles/repair-contact-form-7-agent-inquiry-email).

## Does the successful event prove inbox receipt?

Keep recipient receipt as a separate acceptance check. The plugin event is the trigger for this navigation requirement. Arrange a labeled inquiry with test details under your control. Ask the receiving real estate agent to confirm the matching message before closing delivery acceptance.

## What should the thank-you page tell the visitor?

Describe the completed step and the approved next action. Ask the real estate agent to approve any response expectation. Do not infer a confirmed appointment or personal reply from arrival on the page. Keep optional scheduling clearly described as another action.

## What should happen if the destination cannot load?

Keep the original inquiry result and alternative contact route available in the proposed design. Test a destination failure in the preview environment. Record whether the visitor can recover. Resolve that behavior before making the redirect part of the public inquiry route.

## How should repeated visits to the thank-you page be reviewed?

Define the expected behavior for refresh, back navigation, and direct page access. Ask the maintainer to show that these actions do not send another inquiry. Keep page viewing distinct from the successful form event in the implementation record.

## What should a mobile and keyboard check cover?

Complete the form, inspect its result, and follow the approved handoff. Require usable navigation at the destination. Keep errors available for correction. Record the tested page and device conditions so layout approval and redirect approval remain traceable to an observed check.

## Where should existing GA4 questions be handled?

Use the [GA4 Unassigned guide](/articles/ga4-unassigned-agent-campaign-traffic) for channel diagnosis. Use the [GA4 cross-domain guide](/articles/ga4-cross-domain-agent-idx-inquiries) for cross-domain measurement. Keep those answers with their existing owners. This article specifies success-triggered navigation without recreating analytics setup.

## What should the redirect handoff include?

Deliver the form identifier, script location, approved destination, and outcome matrix. Include successful, invalid, spam, mail-failure, unrelated-form, and repeated-visit checks. Label untested cases explicitly. Preserve the prior script or configuration so a maintainer can review a reversal.

## What should a real estate agent send for repair?

Send the form page, intended destination, actual identifier, and failed outcome. Ask for a [real estate website scope](/for/real-estate) that names the redirect and delivery acceptance separately. Keep the task open until its required navigation and receipt evidence are available.

- [Add Acuity Scheduling to a real estate consultation page](/articles/acuity-agent-consultation-website-integration)
- [Calendly reminders for real estate consultations: configure and verify](/articles/calendly-agent-consultation-reminders)
- [Set Calendly buffers around real estate consultations](/articles/calendly-buffer-time-agent-consultations)


## Related: Real estate

- [Add Acuity Scheduling to a real estate consultation page](/articles/acuity-agent-consultation-website-integration)
- [Calendly reminders for real estate consultations: configure and verify](/articles/calendly-agent-consultation-reminders)
- [Set Calendly buffers around real estate consultations](/articles/calendly-buffer-time-agent-consultations)

----

```text
                  .|########||.                                       .|########||.                                       .|########||.
               |##||.      .||##|.                                 |##||.      .||##|.                                 |##||.      .||##|.
             |#|.              .|#|.                             |#|.              .|#|.                             |#|.              .|#|.
           |#|                    |#|                          |#|                    |#|                          |#|                    |#|
         .#|                        |#.                      .#|                        |#.                      .#|                        |#.
        .#.                          .#|                    .#.                          .#|                    .#.                          .#|
       |#.                            .#|                  |#.                            .#|                  |#.                            .#|
      |#             ......             #|                |#             ......             #|                |#             ......             #|
     .#           ||#########|           #|              .#           ||#########|           #|              .#           ||#########|           #|
    .#.         |######||######|.        .#.            .#.         |######||######|.        .#.            .#.         |######||######|.        .#.
    #.        .##|###|##|#|######|        .#            #.        .##|###|##|#|######|        .#            #.        .##|###|##|#|######|        .#
   ||        |##|#||||||||||||#||#|        ||          ||        |##|#||||||||||||#||#|        ||          ||        |##|#||||||||||||#||#|        ||
   #        |#||||||||||||||||||||#|        #.         #        |#||||||||||||||||||||#|        #.         #        |#||||||||||||||||||||#|        #.
  ||       |#||||||||||||||||||||||#|       ||        ||       |#||||||||||||||||||||||#|       ||        ||       |#||||||||||||||||||||||#|       ||
  #       .#||||||||||||||||||||||||#|       #        #       .#||||||||||||||||||||||||#|       #        #       .#||||||||||||||||||||||||#|       #
 ||   ....|||#||||||##|#|||#|#||##||||....|. ||      ||   ....|||#||||||##|#|||#|#||##||||....|. ||      ||   ....|||#||||||##|#|||#|#||##||||....|. ||
 #.  .  ....|#  ....#|||   ||| .#|||  ....#. .#      #.  .  ....|#  ....#|||   ||| .#|||  ....#. .#      #.  .  ....|#  ....#|||   ||| .#|||  ....#. .#
 #   .  ||||#| .#####||  . .#| .#|||  ||||#   #.     #   .  ||||#| .#####||  . .#| .#|||  ||||#   #.     #   .  ||||#| .#####||  . .#| .#|||  ||||#   #.
.|   |||||  #. |#|||||. ||  #. |#||. .|||||   ||    .|   |||||  #. |#|||||. ||  #. |#||. .|||||   ||    .|   |||||  #. |#|||||. ||  #. |#||. .|||||   ||
||   |....  #. ....|#.      |. ...|. ....||   ||    ||   |....  #. ....|#.      |. ...|. ....||   ||    ||   |....  #. ....|#.      |. ...|. ....||   ||
#.  .||||||##||||||##||####|||||||#||||||#|   .#    #.  .||||||##||||||##||####|||||||#||||||#|   .#    #.  .||||||##||||||##||####|||||||#||||||#|   .#
#    .||####|###########################|.     #    #    .||####|###########################|.     #    #    .||####|###########################|.     #
#      .#||||||.#.|| # |. ..# #| #|||||#|      #    #      .#||||||.#.|| # |. ..# #| #|||||#|      #    #      .#||||||.#.|| # |. ..# #| #|||||#|      #
#      .#|||||| ..  |# ## |#| ...#|#|||#|      #    #      .#|||||| ..  |# ## |#| ...#|#|||#|      #    #      .#|||||| ..  |# ## |#| ...#|#|||#|      #
#      .#|||#|# .# .#| #| ##|.#..#|||||#|      #    #      .#|||#|# .# .#| #| ##|.#..#|||||#|      #    #      .#|||#|# .# .#| #| ##|.#..#|||||#|      #
#      .#||||||############|######|||||#|      #    #      .#||||||############|######|||||#|      #    #      .#||||||############|######|||||#|      #
#   |...||#||||||#||||#|#||||||#|||||#||| |.|  #    #   |...||#||||||#||||#|#||||||#|||||#||| |.|  #    #   |...||#||||||#||||#|#||||||#|||||#||| |.|  #
#. .. ||||# .|||##|.  |#| .|| || .|||#. #|  # .#    #. .. ||||# .|||##|.  |#| .|| || .|||#. #|  # .#    #. .. ||||# .|||##|.  |#| .|| || .|||#. #|  # .#
|| |  ...||  ...##| |  #| .|. |. #####  .. .| ||    || |  ...||  ...##| |  #| .|. |. #####  .. .| ||    || |  ...||  ...##| |  #| .|. |. #####  .. .| ||
|| ||||| || ||||#|  .  |. |. |#. ||||| |#| || ||    || ||||| || ||||#|  .  |. |. |#. ||||| |#| || ||    || ||||| || ||||#|  .  |. |. |#. ||||| |#| || ||
.# |.....#|....|#.||||.|||##.|#|....||.#||.#. #.    .# |.....#|....|#.||||.|||##.|#|....||.#||.#. #.    .# |.....#|....|#.||||.|||##.|#|....||.#||.#. #.
 #.|||||||#############################| ||| .#      #.|||||||#############################| ||| .#      #.|||||||#############################| ||| .#
 ||       ##||#||#||||||#||#||#||#||##.      ||      ||       ##||#||#||||||#||#||#||#||##.      ||      ||       ##||#||#||||||#||#||#||#||##.      ||
  #       .#|||||||||#||#|||||||||||#|       #        #       .#|||||||||#||#|||||||||||#|       #        #       .#|||||||||#||#|||||||||||#|       #
  ||       |#||||||||||||||||||||||#|       ||        ||       |#||||||||||||||||||||||#|       ||        ||       |#||||||||||||||||||||||#|       ||
  .#        |#||||||||||||||||||||#|        #.        .#        |#||||||||||||||||||||#|        #.        .#        |#||||||||||||||||||||#|        #.
   ||        |#||||||||||||||||||#|        ||          ||        |#||||||||||||||||||#|        ||          ||        |#||||||||||||||||||#|        ||
    #.        .######|#|#########|        .#            #.        .######|#|#########|        .#            #.        .######|#|#########|        .#
    .#.         |#####||||#####|         .#.            .#.         |#####||||#####|         .#.            .#.         |#####||||#####|         .#.
     |#           ||########||           #.              |#           ||########||           #.              |#           ||########||           #.
      |#             ......             #|                |#             ......             #|                |#             ......             #|
       |#.                            .#|                  |#.                            .#|                  |#.                            .#|
        |#.                          .#.                    |#.                          .#.                    |#.                          .#.
         .#|                        |#.                      .#|                        |#.                      .#|                        |#.
           |#|                    |#|                          |#|                    |#|                          |#|                    |#|
            .|#|.              .|#|.                            .|#|.              .|#|.                            .|#|.              .|#|.
               |##||.      .||##|                                  |##||.      .||##|                                  |##||.      .||##|
                 .||########||.                                      .||########||.                                      .||########||.

Scale With Search  2026  [scalewithsearch.com](https://scalewithsearch.com)
```
