Thank You Redirect for Gravity Forms

Описание

Thank You Redirect for Gravity Forms is a Gravity Forms Feed Add-On. Each form gets its own configuration under Forms Settings Thank You Redirect:

  • Enable/disable the Thank You flow per form (disabled = existing confirmation untouched)
  • Published WordPress page selector for the Thank You page (auto-resolves WPML translations)
  • Redirect back to: Submission Source URL, Current Form Page, or Custom URL
  • Auto-redirect toggle, 1–60 second delay, return button with custom text
  • Custom success title, success message and redirect message

Place the [gf_thank_you] shortcode on the Thank You page. After submission the visitor is redirected there, sees a professional confirmation with a live countdown, and returns to the original page. Works with AJAX and non-AJAX forms, Gutenberg, Elementor, UX Builder, shortcodes and reusable blocks.

Security: the redirect carries only an opaque short-lived token. The real return URL lives server-side in a transient (30 minutes), user-influenced destinations are restricted to the current site via wp_validate_redirect() plus a host check, and all output is escaped. No entry data is stored or logged.

WPML is optional: with WPML active the Thank You page resolves to its translation and strings are translatable; without it the plugin works in the site default language with RTL inherited from the theme.

Privacy

This plugin does not collect, track, or transmit any data. It creates no database tables, sends no HTTP requests to external servers, and includes no analytics.

Per form submission it stores a single short-lived transient (30 minutes, deleted on first use) containing only the validated return URL, countdown settings, and display texts needed to render the Thank You page. No form entry values, names, email addresses, or other personal data are stored or logged.

Инсталиране

  1. Install and activate Gravity Forms (required).
  2. Upload the thank-you-redirect-for-gravity-forms folder to /wp-content/plugins/ and activate it from Plugins.
  3. Create a WordPress page named „Thank You“ and add the [gf_thank_you] shortcode to it.
  4. Translate the page with WPML if required (no extra configuration needed).
  5. Open Forms your form Settings Thank You Redirect.
  6. Add a feed, check „Enable Thank You Redirect“, select the Thank You page, configure the delay, and save.

No functions.php changes and no hardcoded form IDs are needed.

ЧЗВ

Does it work with multiple forms?

Yes. Each form has its own feed(s) with independent settings. Form A can use Thank You page A with a 5s delay while Form B uses page B with 10s, and Form C can have the feed disabled (its normal confirmation is preserved).

Does it work with AJAX forms?

Yes. The add-on returns a redirect confirmation, which Gravity Forms core converts to an HTTP redirect for normal forms and a JS redirect for AJAX forms automatically.

How is the return URL secured?

The redirect URL contains only an opaque 32-character token. The return URL is stored server-side in a transient and the token is single-use: it is deleted the first time the Thank You page resolves it, so Thank You URLs cannot be replayed. Source-derived URLs must be same-site (enforced with wp_validate_redirect() and a host comparison); external destinations additionally require the „Allow external redirect URLs“ opt-in, which is off by default. Visitor-supplied URLs can never redirect off-site. The front-end JS re-validates same-origin before redirecting.

What happens with multiple feeds on one form?

Feeds are evaluated in feed order (then feed ID), and the first active, enabled feed whose conditional logic matches wins. Feeds belong to exactly one form, so forms can never share feeds.

Does enabling the feed override conditional confirmations?

Yes, by design: when an enabled feed matches, its Thank You redirect takes precedence over the form’s text/page/redirect confirmations (including conditional ones). When no enabled feed matches, the original confirmation is preserved byte-for-byte.

How does WPML support work?

The selected Thank You page ID is resolved per request via the wpml_object_id filter for the current language (wpml_current_language). No per-language configuration is needed. If a translation does not exist, WPML returns the original page. A basic Polylang fallback (pll_get_post) is included. All strings use the thank-you-redirect-for-gravity-forms text domain. RTL comes from the theme (is_rtl()); all CSS uses logical properties scoped to .gftr-thank-you.

What happens if the Thank You page is deleted?

The submission still succeeds; the form falls back to its original Gravity Forms confirmation. An invalid return URL falls back to the site home URL.

Отзиви

There are no reviews for this plugin.

Сътрудници и разработчици

“Thank You Redirect for Gravity Forms” е софтуер с отворен код. Към разширението са допринесли следните хора:

Сътрудници

Превеждане на “Thank You Redirect for Gravity Forms” на вашия език.

Имате интерес към разработване?

Преглеждане на кода, разглеждане на SVN хранилище, или абонамент към програмната история (log) чрез RSS.

Списък с промени

1.0.2

  • Updated readme.txt

1.0.1

  • Minor fixes

1.0.0

  • Initial release: feed add-on, secure token context, shortcode, countdown, WPML/RTL support.