Redirect on success
Send visitors to another page after a successful submission, only to safe http(s) URLs on your own domain or allowed hosts.
In Form Settings the Success Action can be Show Message, Redirect or Both. With Redirect or Both the visitor is sent to the Redirect URL after the server accepts the submission. For safety the browser only follows http or https URLs on the same host or on the form's own allowlist; anything else (javascript:, data:, blob:, other domains) is ignored and the success message is shown instead.
How it works
- settings.successAction: message | redirect | both; settings.successRedirect: the URL; settings.redirectAllowHosts: optional list of extra hosts.
- If the redirect is refused, the form shows .dh-fb-success or the response message.
- Builder forms only (class dh-fb). Hand-made forms can redirect through JS events.
When to use it
- Send leads to a thank-you page that fires a conversion pixel
- Send applicants to a next-steps page
Limitations
- Redirects to other domains are ignored unless the host is on the form's allowlist.
- Only for builder forms.
Availability
- Works in Designer, AI Studio and MCP.
How to use it.
- Open the form in the form builder.
- In Form Settings set Success Action to Redirect or Both.
- Enter the Redirect URL and save.
Related features.
Browse other features
Designer
Bring your ideas to life with our visual website builder. Drag and drop with ease, or dive into coding when needed.
→AI Studio
Describe it and AI builds it. Every change lands in the same project you can open in the Designer.
→MCP
Connect Claude Code, Cursor or any MCP client and build whole sites with your own agent.
→CMS
Create, organize, and manage your dynamic content with the maximum freedom and flexibility of our visual CMS.
→SEO
Divhunt delivers ultra-fast & structured sites that are good for ranking by default, while offering complete control for customization.
→REST API
Easily link to any REST API endpoint with instant preview and expand your site’s functionality smoother than ever before.
→Plugins
Divhunt offers an open platform for creating plugins to upgrade features, add new capabilities, and simplify building better sites.
→Localization
Localize everything from static pages and CMS content to URLs and metadata, in up to 15 languages with no add-on.
→Interactions
Visually create animations and interactions with a simple, intuitive timeline. Build smooth, engaging experiences without code.
→Custom Files
Manage JS and CSS files with a structure developers love, combining folders and clean organization.
→Memberships
Create plans, decide who sees what and connect it all to your CMS. Build courses, communities or client portals.
→