After a submission is accepted, the visitor is sent to one page. That’s either the form’s hosted thank-you page, which Atomicity serves for you, or a redirect to another page you choose, such as a thank-you page on your client’s own site. Each form has exactly one of the two, set under Settings → Thank you → After submit.
A plain HTML form post gets a 303 redirect to that page. A script that asks for JSON gets the same address back as redirectURL, and does the redirect itself.
Why there are two options
A hosted page means a new form works the moment it’s created. There’s nothing to build on the site, and the page can carry your client’s logo and colors. A redirect keeps the visitor on the client’s own domain, inside its design, analytics, and conversion tracking. Most production sites end up redirecting; the hosted page is there so nothing has to be built first.
The hosted thank-you page
The hosted page lives at https://app.atomicity.dev/thank-you/YOUR_FORM_ID. By default it says “Thanks, we got it”, with “Your submission was sent. Someone will be in touch soon.” beneath.
When a visitor arrives from a form post, Atomicity adds the address of the site they came from. That lets a Return to site button take them back to that site’s home page, whichever of the site’s domains they used.
You can change its text, logo, buttons, and, on Pro and Scale, its layout, colors, and CSS. See Customize the thank-you page.
Redirect to another page
With Redirect to another page, visitors go to the page address you enter. It must be a full http:// or https:// URL. The hosted page isn’t shown while a redirect is set, but its settings are kept, so you can switch back.
Scripts and JSON
A request that sends Accept: application/json, or a JSON body, gets a response instead of a redirect:
{
"success": true,
"redirectURL": "https://yourclient.com/thanks"
}redirectURL follows the form’s setting: your redirect address if one is set, otherwise the hosted page’s address. Your code decides what happens next. It can send the visitor there, show its own message in place, or record a conversion first.
Boundaries
- The redirect happens only after a submission is accepted. A refused post, such as one from a domain the site doesn’t list, gets an error instead, and never reaches either page.
- A submission held as spam still sends the visitor to the same page. A bot isn’t told it was caught.
- The redirect address isn’t checked for reachability. If it can’t be used as a web address, visitors are sent to the hosted page instead, so a submission is never lost to a bad URL.
- Changing the setting affects visitors from then on; it doesn’t change where earlier visitors went.
